Skip to content

Commit

Permalink
Fix: getSubCategoryList() 인자 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
qjvk2880 committed May 30, 2024
1 parent f20fc2a commit 9507c4a
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,9 @@ public class CategoryService {
private final CategoryRepository categoryRepository;
private final UserRepository userRepository;

public SubCategoryListResponse getSubCategoryList(MainCategory mainCategory) {
public SubCategoryListResponse getSubCategoryList(MainCategory mainCategory, Long userId) {
User user = userRepository.getReferenceById(1L);
// User user = userRepository.getReferenceById(userId);
List<SubCategoryResponse> subCategoryList = categoryRepository.findAllByMainCategoryAndUser(mainCategory, user);
return new SubCategoryListResponse(subCategoryList);
}
Expand Down

0 comments on commit 9507c4a

Please sign in to comment.