mirror of
https://git.mirrors.martin98.com/https://github.com/mendableai/firecrawl
synced 2025-08-05 15:00:39 +08:00
Update index.ts
This commit is contained in:
parent
252bc09ee2
commit
f0b07b509b
@ -355,7 +355,7 @@ export class WebScraperDataProvider {
|
|||||||
documents: Document[],
|
documents: Document[],
|
||||||
links: string[]
|
links: string[]
|
||||||
): Promise<Document[]> {
|
): Promise<Document[]> {
|
||||||
await this.setCachedDocuments(documents, links);
|
// await this.setCachedDocuments(documents, links);
|
||||||
documents = this.removeChildLinks(documents);
|
documents = this.removeChildLinks(documents);
|
||||||
return documents.splice(0, this.limit);
|
return documents.splice(0, this.limit);
|
||||||
}
|
}
|
||||||
@ -451,7 +451,7 @@ export class WebScraperDataProvider {
|
|||||||
...document,
|
...document,
|
||||||
childrenLinks: childrenLinks || [],
|
childrenLinks: childrenLinks || [],
|
||||||
}),
|
}),
|
||||||
60 * 60 * 24 * 10
|
60 * 60
|
||||||
); // 10 days
|
); // 10 days
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user