mirror of
https://git.mirrors.martin98.com/https://github.com/mendableai/firecrawl
synced 2025-08-19 22:59:12 +08:00
fix(v1/crawl-status): handle job's returnvalue being explicitly null (db race)
This commit is contained in:
parent
b92a4eb79b
commit
461842fe8c
@ -157,10 +157,10 @@ export async function crawlStatusController(
|
||||
continue;
|
||||
}
|
||||
|
||||
if (job.returnvalue === undefined) {
|
||||
if (job.returnvalue === undefined || job.returnvalue === null) {
|
||||
logger.warn(
|
||||
"Job was considered done, but returnvalue is undefined!",
|
||||
{ jobId: job.id, state },
|
||||
{ jobId: job.id, state, returnvalue: job.returnvalue },
|
||||
);
|
||||
continue;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user