Update queue-worker.ts

This commit is contained in:
rafaelsideguide 2024-08-19 09:29:23 -03:00
parent b8170aaa47
commit 4ffc60596a

View File

@ -117,7 +117,7 @@ async function processJob(job: Job, token: string) {
// Check if the job URL is researchhub and block it immediately // Check if the job URL is researchhub and block it immediately
// TODO: remove this once solve the root issue // TODO: remove this once solve the root issue
if (job.data.url && (job.data.url.includes("researchhub.com") || job.data.url.includes("ebay.com"))) { if (job.data.url && (job.data.url.includes("researchhub.com") || job.data.url.includes("ebay.com") || job.data.url.includes("youtube.com"))) {
Logger.info(`🐂 Blocking job ${job.id} with URL ${job.data.url}`); Logger.info(`🐂 Blocking job ${job.id} with URL ${job.data.url}`);
const data = { const data = {
success: false, success: false,