mirror of
https://git.mirrors.martin98.com/https://github.com/mendableai/firecrawl
synced 2025-08-05 13:40:40 +08:00
Update map.ts
This commit is contained in:
parent
4f3d421c70
commit
304b3e752e
@ -30,7 +30,8 @@ export async function mapController(
|
|||||||
req.body = mapRequestSchema.parse(req.body);
|
req.body = mapRequestSchema.parse(req.body);
|
||||||
|
|
||||||
|
|
||||||
const limit = req.body.limit;
|
const limit = req.body.limit ?? 5000;
|
||||||
|
|
||||||
const id = uuidv4();
|
const id = uuidv4();
|
||||||
let links: string[] = [req.body.url];
|
let links: string[] = [req.body.url];
|
||||||
|
|
||||||
@ -110,7 +111,7 @@ export async function mapController(
|
|||||||
job_id: id,
|
job_id: id,
|
||||||
success: links.length > 0,
|
success: links.length > 0,
|
||||||
message: "Map completed",
|
message: "Map completed",
|
||||||
num_docs: links.length,
|
num_docs: linksToReturn.length,
|
||||||
docs: linksToReturn,
|
docs: linksToReturn,
|
||||||
time_taken: timeTakenInSeconds,
|
time_taken: timeTakenInSeconds,
|
||||||
team_id: req.auth.team_id,
|
team_id: req.auth.team_id,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user