Skip to content

Commit

Permalink
Merge pull request #316 from bazilval/issue-314-fix-validator
Browse files Browse the repository at this point in the history
[ISSUE #314] Fix ProductReviewValidator to send correct exception
  • Loading branch information
Sunagatov authored Jun 15, 2024
2 parents c9118e3 + a7699e5 commit 20af437
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public void validateReviewExistsForUser(final UUID userId,
final UUID productId) {
var productReview = productReviewRepository.findByUserIdAndProductId(userId, productId);
if (productReview.isPresent()) {
throw new DeniedProductReviewCreationException(productId, userId, productReview.get().getId());
throw new DeniedProductReviewCreationException(userId, productId, productReview.get().getId());
}
}

Expand Down

0 comments on commit 20af437

Please sign in to comment.