if (notesToRead.size > 0)
This commit is contained in:
parent
6b45b814c9
commit
6be1d986cd
|
@ -237,7 +237,9 @@ export class NotificationEntityService implements OnModuleInit {
|
||||||
}
|
}
|
||||||
return acc;
|
return acc;
|
||||||
}, new Set<Packed<'Note'>>());
|
}, 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) {
|
} catch (e) {
|
||||||
// console.error('error thrown by NoteReadService.read', e);
|
// console.error('error thrown by NoteReadService.read', e);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue