upd: add notification for when scheduled note gets posted
This commit is contained in:
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,
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue