Skip to content

Commit

Permalink
#31 [CHORE] : 임시 커밋
Browse files Browse the repository at this point in the history
  • Loading branch information
hye-on committed Sep 6, 2023
1 parent dc5ccaa commit 69ac6f1
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 11 deletions.
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -48,4 +48,7 @@ application-oauth.properties
togetup-26b96-firebase-adminsdk-3l3ah-3164ed8f18.json

### log files ###
logs
logs

### apple
AuthKey_M992KTZK9V.p8
21 changes: 11 additions & 10 deletions src/main/java/com/wakeUpTogetUp/togetUp/api/room/RoomService.java
Original file line number Diff line number Diff line change
Expand Up @@ -79,16 +79,17 @@ public void getRoomList(Integer userId) {
//모든 알람 가져오기
List<Alarm> alarmList = alarmRepository.findAllByRoomIds(roomIds);
System.out.println("알람 "+alarmList.toString());


//알람의 미션 가져오기

List<Integer> missionIds = alarmList.stream()
.map(Alarm -> Alarm.getMission().getId())
.collect(Collectors.toList());

List<Mission> missionList = missionRepository.findAllById(missionIds);
System.out.println("미션 "+ missionList.toString());
// RoomRes roomRes= RoomRes.builder()
// .roomId(roomList.get(0).getId())
// .roomIcon(alarmList.get())
// //알람의 미션 가져오기
//
// List<Integer> missionIds = alarmList.stream()
// .map(Alarm -> Alarm.getMission().getId())
// .collect(Collectors.toList());
//
// List<Mission> missionList = missionRepository.findAllById(missionIds);
// System.out.println("미션 "+ missionList.toString());


//미션 로그 가져오기
Expand Down

0 comments on commit 69ac6f1

Please sign in to comment.