fix(crawl-status): isCancelled should be status failed
This commit is contained in:
@@ -25,7 +25,9 @@ export async function crawlStatusController(req: Request, res: Response) {
|
|||||||
|
|
||||||
if (isCancelled) {
|
if (isCancelled) {
|
||||||
return res.json({
|
return res.json({
|
||||||
status: "cancelled",
|
status: "failed",
|
||||||
|
docs: null,
|
||||||
|
partialDocs: [],
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user