fix deletion of scheduled note

This commit is contained in:
Marie 2024-12-09 06:10:32 +01:00
parent 116a147202
commit f02d099413
No known key found for this signature in database
GPG key ID: 7ADF6C9CD9A28555

View file

@ -61,7 +61,7 @@ export default class extends Endpoint<typeof meta, typeof paramDef> { // eslint-
throw new ApiError(meta.errors.permissionDenied);
}
await this.noteScheduleRepository.delete({ id: ps.noteId });
await this.queueService.ScheduleNotePostQueue.remove(ps.noteId);
await this.queueService.ScheduleNotePostQueue.remove(`schedNote:${ps.noteId}`);
});
}
}