From 0394a77e49a6284c3b780df224f8be45664e9d45 Mon Sep 17 00:00:00 2001 From: alma Date: Tue, 6 Jan 2026 20:11:58 +0100 Subject: [PATCH] Refactor Notification BIG --- lib/services/notifications/leantime-adapter.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/services/notifications/leantime-adapter.ts b/lib/services/notifications/leantime-adapter.ts index 176aea80..86c2f776 100644 --- a/lib/services/notifications/leantime-adapter.ts +++ b/lib/services/notifications/leantime-adapter.ts @@ -504,8 +504,8 @@ export class LeantimeAdapter implements NotificationAdapter { }; // Process notifications in batches - const notificationIds = unreadNotifications - .map((n: { id: number | string; sourceId: string }) => { + const notificationIds: number[] = unreadNotifications + .map((n: { id: number | string; sourceId: string }): number | null => { const id = typeof n.id === 'number' ? n.id : parseInt(String(n.id || n.sourceId)); return isNaN(id) ? null : id; })