Skip to content

Supercharge your AI agents with data from the web and beyond. Building the library for superintelligence. 🔥

fix(v0/search): pass job priority

Gergő Móricz0dd06d33efeb
diff --git a/apps/api/src/controllers/v0/search.ts b/apps/api/src/controllers/v0/search.ts
index 648706059..24f586335 100644
--- a/apps/api/src/controllers/v0/search.ts
+++ b/apps/api/src/controllers/v0/search.ts
@@ -98,7 +98,7 @@ export async function searchHelper(
if (Sentry.isInitialized()) {
for (const job of jobDatas) {
// 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 {
jobs = await getScrapeQueue().addBulk(jobDatas);