fix(crawl): propagate db fix to preview endpoint

This commit is contained in:
Gergő Móricz
2024-08-16 23:43:54 +02:00
parent e6738abf96
commit c281fe62c0
2 changed files with 3 additions and 14 deletions
+1 -1
View File
@@ -6,7 +6,7 @@ import { Logger } from "../../src/lib/logger";
import { getCrawl, getCrawlJobs } from "../../src/lib/crawl-redis";
import { supabaseGetJobsById } from "../../src/lib/supabase-jobs";
async function getJobs(ids: string[]) {
export async function getJobs(ids: string[]) {
const jobs = (await Promise.all(ids.map(x => getScrapeQueue().getJob(x)))).filter(x => x);
if (process.env.USE_DB_AUTHENTICATION === "true") {