Update index.ts

This commit is contained in:
Nicolas 2024-07-23 15:15:56 -04:00
parent 252bc09ee2
commit f0b07b509b

View File

@ -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
} }
} }