mirror of
https://git.mirrors.martin98.com/https://github.com/mendableai/firecrawl
synced 2025-08-05 13:50:36 +08:00
return bug
This commit is contained in:
parent
e217952434
commit
d3a9d29288
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user