Skip to content

Commit 214d8e0

Browse files
BENCH-184 made removing item from basket transactional
1 parent 566b741 commit 214d8e0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/main/java/com/answerdigital/answerking/service/OrderService.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ public Order updateProductQuantity(final Long orderId, final Long productId, fin
9999
return orderRepository.save(order);
100100
}
101101

102+
@Transactional
102103
public Order deleteProductInBasket(final Long orderId, final Long productId) {
103104
final Order order = findById(orderId);
104105
final Product product = productService.findById(productId);

0 commit comments

Comments
 (0)