Skip to content

Commit

Permalink
renamed method params
Browse files Browse the repository at this point in the history
  • Loading branch information
fedorovychh committed Jan 2, 2024
1 parent b812e47 commit 2a3b215
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import org.springframework.security.core.Authentication;

public interface ShoppingCartService {
ShoppingCartResponseDto findByUserId(Long userId);
ShoppingCartResponseDto findByUserId(Long id);

void createShoppingCart(User user);

Expand All @@ -16,7 +16,7 @@ ShoppingCartResponseDto addToShoppingCart(Authentication authentication,

ShoppingCartResponseDto updateByCartId(
Authentication authentication,
Long cartItemId,
Long id,
PutCartItemRequestDto requestDto
);
}
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ public class ShoppingCartServiceImpl implements ShoppingCartService {
private final ShoppingCartMapper shoppingCartMapper;

@Override
public ShoppingCartResponseDto findByUserId(Long userId) {
return shoppingCartMapper.toDto(shoppingCartRepository.findShoppingCartByUserId(userId));
public ShoppingCartResponseDto findByUserId(Long id) {
return shoppingCartMapper.toDto(shoppingCartRepository.findShoppingCartByUserId(id));
}

@Override
Expand Down

0 comments on commit 2a3b215

Please sign in to comment.