From 38a5f4e54341cd64381f016637c5d7b44f586495 Mon Sep 17 00:00:00 2001 From: April John Date: Mon, 15 May 2023 12:25:54 +0000 Subject: [PATCH] Fix: add done statements --- packages/backend/src/queue/processors/db/import-masto-post.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/backend/src/queue/processors/db/import-masto-post.ts b/packages/backend/src/queue/processors/db/import-masto-post.ts index b4c526db2..afe6edc34 100644 --- a/packages/backend/src/queue/processors/db/import-masto-post.ts +++ b/packages/backend/src/queue/processors/db/import-masto-post.ts @@ -24,10 +24,12 @@ export async function importMastoPost( reply = await resolveNote(post.object.inReplyTo); } if (post.directMessage) { + done(); return; } if (job.data.signatureCheck) { if (!post.signature) { + done(); return; } } @@ -35,6 +37,7 @@ export async function importMastoPost( try { text = htmlToMfm(post.object.content, post.object.tag); } catch (e) { + done(); return; }