diff --git a/packages/backend/src/core/entities/NotificationEntityService.ts b/packages/backend/src/core/entities/NotificationEntityService.ts index e10b68df02..cc40a3f754 100644 --- a/packages/backend/src/core/entities/NotificationEntityService.ts +++ b/packages/backend/src/core/entities/NotificationEntityService.ts @@ -237,7 +237,9 @@ export class NotificationEntityService implements OnModuleInit { } return acc; }, new Set>()); - trackPromise(this.noteReadService.read(meId, Array.from(notesToRead))); + if (notesToRead.size > 0) { + trackPromise(this.noteReadService.read(meId, Array.from(notesToRead))); + } } catch (e) { // console.error('error thrown by NoteReadService.read', e); }