Update index.ts
This commit is contained in:
@@ -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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user