From d8613899e3239c6656dae6dec838689193aec56e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gerg=C5=91=20M=C3=B3ricz?= Date: Wed, 4 Dec 2024 17:52:47 +0100 Subject: [PATCH] fix(crawl-status): handle failed jobs (oops) --- apps/api/src/controllers/v1/crawl-status.ts | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/apps/api/src/controllers/v1/crawl-status.ts b/apps/api/src/controllers/v1/crawl-status.ts index 8493e855..1f2f92e9 100644 --- a/apps/api/src/controllers/v1/crawl-status.ts +++ b/apps/api/src/controllers/v1/crawl-status.ts @@ -99,8 +99,14 @@ export async function crawlStatusController(req: RequestWithAuth (await x.getState()) === "failed" ? null : x))).filter(x => x !== null); } const data = doneJobs.map(x => x.returnvalue);