From ab255f42d5e59c6c63e1c700c800fd37090707a7 Mon Sep 17 00:00:00 2001 From: LimHyunwoo <81962309+imenuuu@users.noreply.github.com> Date: Fri, 2 Feb 2024 19:01:45 +0900 Subject: [PATCH] =?UTF-8?q?refactor:=20=EC=9E=84=EC=8B=9C=20=EA=B3=B5?= =?UTF-8?q?=EC=A7=80=20=EC=A1=B0=ED=9A=8C=20=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../cmc_be/notification/controller/NotificationController.kt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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")