better poll editing - fixes #668

* editing _just the poll_ is now recognised as an actual change to the
  note
* the "poll ended" notification job is now replaced (with potentially
  the new expiry time)
This commit is contained in:
dakkar 2024-11-27 11:57:19 +00:00
parent 1ec5e846c5
commit 1f53eb2ed1
2 changed files with 6 additions and 3 deletions

View file

@ -629,6 +629,7 @@ export class NoteCreateService implements OnApplicationShutdown {
this.queueService.endedPollNotificationQueue.add(note.id, {
noteId: note.id,
}, {
jobId: `pollEnd:${note.id}`,
delay,
removeOnComplete: true,
});