From dcbe0b319cf8498dd3afcd683f57ff938c6be7f2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gerg=C5=91=20M=C3=B3ricz?= Date: Mon, 20 Jan 2025 20:01:27 +0100 Subject: [PATCH] fix(v1/crawl-status-ws): wait to send catchup before closing --- apps/api/src/controllers/v1/crawl-status-ws.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/api/src/controllers/v1/crawl-status-ws.ts b/apps/api/src/controllers/v1/crawl-status-ws.ts index 817dc184..9ed1d1c6 100644 --- a/apps/api/src/controllers/v1/crawl-status-ws.ts +++ b/apps/api/src/controllers/v1/crawl-status-ws.ts @@ -157,7 +157,7 @@ async function crawlStatusWS( const doneJobs = await getJobs(doneJobIDs); const data = doneJobs.map((x) => x.returnvalue); - send(ws, { + await send(ws, { type: "catchup", data: { success: true,