Refactor Notification BIG

This commit is contained in:
alma 2026-01-06 20:08:59 +01:00
parent 2e1bb60917
commit 015bb3b3eb

View File

@ -509,7 +509,7 @@ export class LeantimeAdapter implements NotificationAdapter {
const id = typeof n.id === 'number' ? n.id : parseInt(String(n.id || n.sourceId)); const id = typeof n.id === 'number' ? n.id : parseInt(String(n.id || n.sourceId));
return isNaN(id) ? null : id; return isNaN(id) ? null : id;
}) })
.filter((id): id is number => id !== null); .filter((id: number | null): id is number => id !== null);
console.log(`[LEANTIME_ADAPTER] markAllAsRead - Processing ${notificationIds.length} notifications in batches of ${BATCH_SIZE}`); console.log(`[LEANTIME_ADAPTER] markAllAsRead - Processing ${notificationIds.length} notifications in batches of ${BATCH_SIZE}`);