Update crawl-cancel.ts

This commit is contained in:
Nicolas 2024-07-18 13:43:03 -04:00
parent ce804d3c20
commit 11768571ed

View File

@ -60,7 +60,7 @@ export async function crawlCancelController(req: Request, res: Response) {
const newJobState = await job.getState(); const newJobState = await job.getState();
res.json({ res.json({
status: newJobState === "failed" ? "cancelled" : "Cancelling...", status: "cancelled"
}); });
} catch (error) { } catch (error) {
console.error(error); console.error(error);