mirror of
https://git.mirrors.martin98.com/https://github.com/jina-ai/reader
synced 2025-08-15 01:16:01 +08:00
fix: search result cache save
This commit is contained in:
parent
ec4ce4fef3
commit
d100c3fc5f
@ -380,7 +380,7 @@ ${this.content}
|
||||
createdAt: nowDate,
|
||||
expireAt: new Date(nowDate.valueOf() + this.cacheRetentionMs)
|
||||
});
|
||||
SearchResult.save(record).catch((err) => {
|
||||
SearchResult.save(record.degradeForFireStore()).catch((err) => {
|
||||
this.logger.warn(`Failed to cache search result`, { err });
|
||||
});
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user