Skip to content

Commit

Permalink
fix: changeSellingState
Browse files Browse the repository at this point in the history
  • Loading branch information
hyunihs committed Jan 4, 2025
1 parent 31bfa86 commit 5818524
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ public ProductResponse registerProduct(List<MultipartFile> images, PostProduct p
if (!postProduct.materials().isEmpty()) addMaterials(postProduct.materials(), product);

// productSellingState
productStateRepository.save(ProductState.of(product.getId(), ProductStateType.PREPARING));
changeSellingState(product, ProductStateType.PREPARING);

return ProductResponse.fromProduct(product);

Expand All @@ -133,7 +133,7 @@ private Product handleRejectedProduct(PostProduct postProduct, User user, List<M
product.updateThumbnailImageUrl(thumbnailGeneratedUrl);

// productSellingState
productStateRepository.save(ProductState.of(product.getId(), ProductStateType.REJECTED));
changeSellingState(product, ProductStateType.REJECTED);

return product;

Expand Down

0 comments on commit 5818524

Please sign in to comment.