mirror of
https://github.com/mendableai/firecrawl.git
synced 2024-11-16 11:42:24 +08:00
Update crawl-cancel.ts
This commit is contained in:
parent
ce804d3c20
commit
11768571ed
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user