Skip to content

Commit

Permalink
refactor: 임시 공지 조회 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
imenuuu committed Feb 2, 2024
1 parent bd5dd80 commit ab255f4
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,9 @@ class NotificationController(
) {
@GetMapping("/latest")
@Operation(summary = "02-01 본인 기수 최신 공지 조회")
fun getThisWeekNotification(@AuthenticationPrincipal user: User): CommonResponse<NotificationRes.NotificationDto> {
return CommonResponse.onSuccess(notificationService.getThisWeekNotification(user))
fun getThisWeekNotification(@AuthenticationPrincipal user: User): CommonResponse<List<NotificationRes.NotificationDto>> {
//return CommonResponse.onSuccess(notificationService.getThisWeekNotification(user))
return CommonResponse.onSuccess(notificationService.getAllNotification(user.nowGeneration))
}

@GetMapping("/all")
Expand Down

0 comments on commit ab255f4

Please sign in to comment.