Skip to content

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

Update crawl-cancel.ts

Nicolas11768571ed9a
diff --git a/apps/api/src/controllers/crawl-cancel.ts b/apps/api/src/controllers/crawl-cancel.ts
index 8a2c91f90..a5e28323f 100644
--- a/apps/api/src/controllers/crawl-cancel.ts
+++ b/apps/api/src/controllers/crawl-cancel.ts
@@ -60,7 +60,7 @@ export async function crawlCancelController(req: Request, res: Response) {
const newJobState = await job.getState();
res.json({
- status: newJobState === "failed" ? "cancelled" : "Cancelling...",
+ status: "cancelled"
});
} catch (error) {
console.error(error);