From a8104e4abf6aa192ba4ea32121e189c494b9c515 Mon Sep 17 00:00:00 2001 From: kadami <86646883+kadamidev@users.noreply.github.com> Date: Tue, 5 Nov 2024 19:19:52 +0000 Subject: [PATCH] proper fix neutral notif index for all dismissed/undismissed notifs --- desci-server/src/services/NotificationService.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/desci-server/src/services/NotificationService.ts b/desci-server/src/services/NotificationService.ts index 01275ba8..48818a2d 100644 --- a/desci-server/src/services/NotificationService.ts +++ b/desci-server/src/services/NotificationService.ts @@ -84,7 +84,7 @@ export const getUserNotifications = async ( const skip = (page - 1) * perPage; const whereClause = { userId, - dismissed, + ...(dismissed && { dismissed }), }; const [notifications, totalItems] = await Promise.all([