fix(scrape): remove scrape job from queue after the job is done

This commit is contained in:
Gergo Moricz 2024-08-13 21:26:41 +02:00
parent 2413e33359
commit 5f2af37880

View File

@ -62,6 +62,8 @@ export async function scrapeHelper(
}
}
await job.remove();
if (!doc) {
console.error("!!! PANIC DOC IS", doc, job);
return { success: true, error: "No page found", returnCode: 200, data: doc };