fix: search result cache save

This commit is contained in:
Yanlong Wang 2024-05-14 19:57:49 +08:00
parent ec4ce4fef3
commit d100c3fc5f
No known key found for this signature in database
GPG Key ID: C0A623C0BADF9F37

View File

@ -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 });
});