if (notesToRead.size > 0)
This commit is contained in:
parent
6b45b814c9
commit
6be1d986cd
|
@ -237,7 +237,9 @@ export class NotificationEntityService implements OnModuleInit {
|
|||
}
|
||||
return acc;
|
||||
}, new Set<Packed<'Note'>>());
|
||||
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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue