Skip to content

Commit

Permalink
Fix style
Browse files Browse the repository at this point in the history
  • Loading branch information
lysalexy committed Dec 18, 2023
1 parent 5bac0a9 commit f7f589e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 2 additions & 4 deletions src/main/java/org/example/controller/cart/CartController.java
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,7 @@ public ResponseEntity<?> addItemToCart(

@DeleteMapping("/delete")
public ResponseEntity<?> deleteItemFromCart(
@RequestParam(value = "item_id") Long itemId,
@RequestParam(value = "user_id") Long userId) {
return ResponseEntity.ok(
cartService.deleteItemFromCart(userId,itemId));
@RequestParam(value = "item_id") Long itemId, @RequestParam(value = "user_id") Long userId) {
return ResponseEntity.ok(cartService.deleteItemFromCart(userId, itemId));
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@

@Repository
public interface CartRepository extends JpaRepository<Cart, Long> {
Optional<Cart> findByUserAccount_Id(Long user_id);
Optional<Cart> findByUserAccount_Id(Long user_id);
}

0 comments on commit f7f589e

Please sign in to comment.