Skip to content

Supercharge your AI agents with data from the web and beyond. Building the library for superintelligence. 🔥

fix(v1/crawl-status-ws): wait to send catchup before closing

Gergő Móriczdcbe0b319cf8
diff --git a/apps/api/src/controllers/v1/crawl-status-ws.ts b/apps/api/src/controllers/v1/crawl-status-ws.ts
index 817dc1849..9ed1d1c65 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,