From 976f62a64d834d8b071e2be263d55e8b0e0f94ea Mon Sep 17 00:00:00 2001 From: case Date: Thu, 26 Sep 2024 11:58:33 -0700 Subject: [PATCH] Update Notifications Read for Lists --- apps/api/app/api/users/me/resource-viewed/route.ts | 2 ++ packages/notifications/lib/updateNotificationsRead.ts | 3 +++ 2 files changed, 5 insertions(+) diff --git a/apps/api/app/api/users/me/resource-viewed/route.ts b/apps/api/app/api/users/me/resource-viewed/route.ts index b5b9e6b2..faff9372 100644 --- a/apps/api/app/api/users/me/resource-viewed/route.ts +++ b/apps/api/app/api/users/me/resource-viewed/route.ts @@ -19,6 +19,8 @@ export async function POST(req: Request): Promise { const now = new Date() @@ -14,6 +16,7 @@ export async function updateNotificationsRead({ recipientId: userId, readAt: null, marketId: marketId, + listId: listId, }, data: { readAt: now,