diff --git a/src/main/kotlin/com/example/cmc_be/notification/controller/NotificationController.kt b/src/main/kotlin/com/example/cmc_be/notification/controller/NotificationController.kt index abc0f14..095adb3 100644 --- a/src/main/kotlin/com/example/cmc_be/notification/controller/NotificationController.kt +++ b/src/main/kotlin/com/example/cmc_be/notification/controller/NotificationController.kt @@ -21,8 +21,9 @@ class NotificationController( ) { @GetMapping("/latest") @Operation(summary = "02-01 본인 기수 최신 공지 조회") - fun getThisWeekNotification(@AuthenticationPrincipal user: User): CommonResponse { - return CommonResponse.onSuccess(notificationService.getThisWeekNotification(user)) + fun getThisWeekNotification(@AuthenticationPrincipal user: User): CommonResponse> { + //return CommonResponse.onSuccess(notificationService.getThisWeekNotification(user)) + return CommonResponse.onSuccess(notificationService.getAllNotification(user.nowGeneration)) } @GetMapping("/all")