Skip to content

Commit

Permalink
fix: User -> userId 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
mikekks committed Oct 15, 2024
1 parent 4b99bc6 commit 68fe881
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@ public interface CoLeaderRepository extends JpaRepository<CoLeader, Integer> {

List<CoLeader> findAllByMeetingIdIn(List<Integer> meetingId);

List<CoLeader> findAllByUser(User user);
List<CoLeader> findAllByUserId(Integer userId);

}
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,7 @@ public UserV2GetUserOwnProfileResponseDto getUserOwnProfile(Integer userId) {
* **/
@Override
public UserV2GetCreatedMeetingByUserResponseDto getCreatedMeetingByUser(Integer userId) {
User user = userRepository.findByIdOrThrow(userId);
List<Integer> coLeaderMeetingIds = getCoLeaderMeetingIds(coLeaderRepository.findAllByUser(user));
List<Integer> coLeaderMeetingIds = getCoLeaderMeetingIds(coLeaderRepository.findAllByUserId(userId));

List<Meeting> myMeetings = meetingRepository.findAllByUserIdOrIdInWithUser(userId, coLeaderMeetingIds);
List<Integer> myMeetingIds = myMeetings.stream().map(Meeting::getId).toList();
Expand Down

0 comments on commit 68fe881

Please sign in to comment.