Skip to content

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

Update status.ts

Nicolasce7bab7b3569
diff --git a/apps/api/src/controllers/status.ts b/apps/api/src/controllers/status.ts
index bd1d2ead9..907978749 100644
--- a/apps/api/src/controllers/status.ts
+++ b/apps/api/src/controllers/status.ts
@@ -8,7 +8,7 @@ export async function crawlJobStatusPreviewController(req: Request, res: Respons
return res.status(404).json({ error: "Job not found" });
}
- const { current, current_url, total, current_step } = await job.progress();
+ const { current, current_url, total, current_step, partialDocs } = await job.progress();
res.json({
status: await job.getState(),
// progress: job.progress(),
@@ -17,6 +17,7 @@ export async function crawlJobStatusPreviewController(req: Request, res: Respons
current_step: current_step,
total: total,
data: job.returnvalue,
+ partial_data: partialDocs ?? [],
});
} catch (error) {
console.error(error);