mirror of
https://git.mirrors.martin98.com/https://github.com/jina-ai/reader
synced 2025-08-18 01:25:56 +08:00
fix: blockade query
This commit is contained in:
parent
d2bebec60f
commit
7a7e49bc00
@ -635,7 +635,10 @@ ${suffixMixins.length ? `\n${suffixMixins.join('\n\n')}\n` : ''}`;
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
const blockade = (await DomainBlockade.fromFirestoreQuery(
|
const blockade = (await DomainBlockade.fromFirestoreQuery(
|
||||||
DomainBlockade.COLLECTION.where('domain', '==', urlToCrawl.hostname.toLowerCase()).limit(1)
|
DomainBlockade.COLLECTION
|
||||||
|
.where('domain', '==', urlToCrawl.hostname.toLowerCase())
|
||||||
|
.where('expireAt', '>=', new Date())
|
||||||
|
.limit(1)
|
||||||
))[0];
|
))[0];
|
||||||
|
|
||||||
if (blockade) {
|
if (blockade) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user