fix(crawl-status): isCancelled should be status failed

This commit is contained in:
Gergo Moricz 2024-08-06 16:35:55 +02:00
parent 03c84a9372
commit d7d63790e5

View File

@ -25,7 +25,9 @@ export async function crawlStatusController(req: Request, res: Response) {
if (isCancelled) {
return res.json({
status: "cancelled",
status: "failed",
docs: null,
partialDocs: [],
});
}