if (notesToRead.size > 0)

This commit is contained in:
tamaina 2024-02-21 18:45:24 +00:00
parent 6b45b814c9
commit 6be1d986cd
1 changed files with 3 additions and 1 deletions

View File

@ -237,7 +237,9 @@ export class NotificationEntityService implements OnModuleInit {
}
return acc;
}, new Set<Packed<'Note'>>());
if (notesToRead.size > 0) {
trackPromise(this.noteReadService.read(meId, Array.from(notesToRead)));
}
} catch (e) {
// console.error('error thrown by NoteReadService.read', e);
}