@@ -18,7 +18,7 @@ class NotificationController {
1818 async getNotifications ( req , res , next ) {
1919 try {
2020 // 현재 로그인한 사용자 ID
21- const userId = BigInt ( req . user . id ) ;
21+ const userId = BigInt ( req . user . userId ) ;
2222
2323 // 쿼리 파라미터에서 페이지네이션 정보 추출
2424 const page = req . query . page || 1 ;
@@ -57,7 +57,7 @@ class NotificationController {
5757 const notificationId = BigInt ( req . params . notificationId ) ;
5858
5959 // 현재 로그인한 사용자 ID
60- const userId = BigInt ( req . user . id ) ;
60+ const userId = BigInt ( req . user . userId ) ;
6161
6262 // 알림 읽음 처리 서비스 호출
6363 const result = await notificationService . markNotificationAsRead ( notificationId , userId ) ;
@@ -86,7 +86,7 @@ class NotificationController {
8686 async markAllNotificationsAsRead ( req , res , next ) {
8787 try {
8888 // 현재 로그인한 사용자 ID
89- const userId = BigInt ( req . user . id ) ;
89+ const userId = BigInt ( req . user . userId ) ;
9090
9191 // 모든 알림 읽음 처리 서비스 호출
9292 const result = await notificationService . markAllNotificationsAsRead ( userId ) ;
@@ -113,7 +113,7 @@ class NotificationController {
113113 const { notification_ids } = req . body ;
114114
115115 // 현재 로그인한 사용자 ID
116- const userId = BigInt ( req . user . id ) ;
116+ const userId = BigInt ( req . user . userId ) ;
117117
118118 // 선택 알림 삭제 서비스 호출
119119 const result = await notificationService . deleteNotificationsByIds ( notification_ids , userId ) ;
@@ -140,7 +140,7 @@ class NotificationController {
140140 async deleteAllNotifications ( req , res , next ) {
141141 try {
142142 // 현재 로그인한 사용자 ID
143- const userId = BigInt ( req . user . id ) ;
143+ const userId = BigInt ( req . user . userId ) ;
144144
145145 // 전체 알림 삭제 서비스 호출
146146 const result = await notificationService . deleteAllNotifications ( userId ) ;
0 commit comments