1
0

upd: add notification for when scheduled note gets posted

This commit is contained in:
Marie
2024-11-04 11:22:37 +01:00
parent 170093f2a2
commit 1d3c825398
13 changed files with 77 additions and 9 deletions
@@ -107,7 +107,7 @@ export class ScheduleNotePostProcessorService {
return;
}
await this.noteCreateService.create(me, {
const createdNote = await this.noteCreateService.create(me, {
...note,
createdAt: new Date(),
files,
@@ -121,6 +121,9 @@ export class ScheduleNotePostProcessorService {
channel,
});
await this.noteScheduleRepository.remove(data);
this.notificationService.createNotification(me.id, 'scheduledNotePosted', {
noteId: createdNote.id,
});
}
});
}