fix(v0/search): pass job priority

This commit is contained in:
Gergő Móricz 2024-09-30 19:20:24 +02:00
parent 20ffdbd15c
commit 0dd06d33ef

View File

@ -98,7 +98,7 @@ export async function searchHelper(
if (Sentry.isInitialized()) { if (Sentry.isInitialized()) {
for (const job of jobDatas) { for (const job of jobDatas) {
// add with sentry instrumentation // add with sentry instrumentation
jobs.push(await addScrapeJob(job.data as any, {}, job.opts.jobId)); jobs.push(await addScrapeJob(job.data as any, {}, job.opts.jobId, job.opts.priority));
} }
} else { } else {
jobs = await getScrapeQueue().addBulk(jobDatas); jobs = await getScrapeQueue().addBulk(jobDatas);