Refactor Notification BIG

This commit is contained in:
alma 2026-01-06 20:04:19 +01:00
parent cbba3c14c7
commit 2e1bb60917

View File

@ -505,7 +505,7 @@ export class LeantimeAdapter implements NotificationAdapter {
// Process notifications in batches // Process notifications in batches
const notificationIds = unreadNotifications const notificationIds = unreadNotifications
.map(n => { .map((n: { id: number | string; sourceId: string }) => {
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;
}) })