From d7d63790e50149e5d69cc5afc3031d05814535a7 Mon Sep 17 00:00:00 2001 From: Gergo Moricz Date: Tue, 6 Aug 2024 16:35:55 +0200 Subject: [PATCH] fix(crawl-status): isCancelled should be status failed --- apps/api/src/controllers/crawl-status.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/apps/api/src/controllers/crawl-status.ts b/apps/api/src/controllers/crawl-status.ts index 13ea20c4..35dd4d38 100644 --- a/apps/api/src/controllers/crawl-status.ts +++ b/apps/api/src/controllers/crawl-status.ts @@ -25,7 +25,9 @@ export async function crawlStatusController(req: Request, res: Response) { if (isCancelled) { return res.json({ - status: "cancelled", + status: "failed", + docs: null, + partialDocs: [], }); }