mirror of
https://github.com/intergalacticalvariable/reader.git
synced 2024-11-16 11:42:32 +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…
Reference in New Issue
Block a user