From b89cbe8a43d5517d95af8dbc369c3c0ebfd17094 Mon Sep 17 00:00:00 2001 From: Hazelnoot Date: Thu, 23 Oct 2025 11:29:52 -0400 Subject: [PATCH] fix job ID for background jobs --- packages/backend/src/core/QueueService.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/backend/src/core/QueueService.ts b/packages/backend/src/core/QueueService.ts index 344ea2ab40..c9fd4cbd3d 100644 --- a/packages/backend/src/core/QueueService.ts +++ b/packages/backend/src/core/QueueService.ts @@ -872,7 +872,7 @@ export class QueueService implements OnModuleInit { @bindThis public async createPostNoteJob(noteId: string, silent: boolean, type: 'create' | 'edit') { const edit = type === 'edit'; - const duplication = `${noteId}:${type}`; + const duplication = `${noteId}_${type}`; return await this.createBackgroundTask({ type: 'post-note', noteId, silent, edit }, duplication); } @@ -949,7 +949,7 @@ export class QueueService implements OnModuleInit { // https://docs.bullmq.io/guide/jobs/deduplication deduplication: typeof(duplication) === 'string' - ? { id: `${data.type}:${duplication}` } + ? { id: `${data.type}_${duplication}` } : duplication, }, );