mirror of
https://git.mirrors.martin98.com/https://github.com/jina-ai/reader.git
synced 2025-08-20 16:39:10 +08:00
fix(adaptive-crawler): useSitemap should be rewritten in certain condition
This commit is contained in:
parent
339af19192
commit
af282eec43
@ -144,6 +144,8 @@ export class AdaptiveCrawlerHost extends RPCHost {
|
|||||||
|
|
||||||
await Promise.all(promises);
|
await Promise.all(promises);
|
||||||
} else {
|
} else {
|
||||||
|
meta.useSitemap = false;
|
||||||
|
|
||||||
await AdaptiveCrawlTask.COLLECTION.doc(shortDigest).update({
|
await AdaptiveCrawlTask.COLLECTION.doc(shortDigest).update({
|
||||||
urls: [targetUrl.toString()],
|
urls: [targetUrl.toString()],
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user