Skip to content

Commit

Permalink
Merge pull request #125 from Yanol-Market/feature/83
Browse files Browse the repository at this point in the history
Update ProductService.java
  • Loading branch information
yurim0628 authored Jan 18, 2024
2 parents d532b30 + ebb7f77 commit 3fdba18
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -162,12 +162,12 @@ public ProductResponse updateProduct(ProductRequest productRequest, Long product
@Transactional
public Long deleteProduct(Long productId) {
Product product = getProduct(productId);
productRepository.delete(product);


String updateUrl = buildReservationUrl(RESERVATION_UPDATE_STATUS_ENDPOINT, product.getReservationId());

restTemplateService.put(updateUrl, new UpdateReservationStatusRequest(NOT_REGISTERED));


productRepository.delete(product);

return productId;
}

Expand Down

0 comments on commit 3fdba18

Please sign in to comment.