Skip to content

Commit

Permalink
return bug
Browse files Browse the repository at this point in the history
  • Loading branch information
mogery committed Nov 26, 2024
1 parent e217952 commit d3a9d29
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/api/src/services/queue-worker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,8 @@ async function finishCrawlIfNeeded(job: Job & { id: string }, sc: StoredCrawl) {
: "completed";

const fullDocs = jobs.map((x) =>
Array.isArray(x.returnvalue) ? x.returnvalue[0] : x.returnvalue
);
x.returnvalue ? (Array.isArray(x.returnvalue) ? x.returnvalue[0] : x.returnvalue) : null
).filter(x => x !== null);

await logJob({
job_id: job.data.crawl_id,
Expand Down

0 comments on commit d3a9d29

Please sign in to comment.