This commit is contained in:
syuilo 2025-10-08 17:37:44 +09:00
parent 6d2e582eaf
commit 04e2d44d28
1 changed files with 1 additions and 0 deletions

View File

@ -324,6 +324,7 @@ export class NoteDraftService {
@bindThis
public async clearSchedule(draftId: MiNoteDraft['id']): Promise<void> {
// TODO: 線形探索なのをどうにかする
const jobs = await this.queueService.postScheduledNoteQueue.getJobs(['delayed', 'waiting', 'active']);
for (const job of jobs) {
if (job.data.noteDraftId === draftId) {