diff --git a/src/app/api/notifications/route.ts b/src/app/api/notifications/route.ts index b2e7944f..1726443a 100644 --- a/src/app/api/notifications/route.ts +++ b/src/app/api/notifications/route.ts @@ -11,7 +11,7 @@ export async function GET() { } const userId = Number(session.user.id); - const notifications = await notificationService.getNotifications(userId); + const { notifications } = await notificationService.getNotifications(userId); const unreadCount = await notificationService.getUnreadCount(userId); return NextResponse.json({ notifications, unreadCount });