Spaces:
Build error
Build error
fix: search result cache save
Browse files
backend/functions/src/cloud-functions/searcher.ts
CHANGED
|
@@ -380,7 +380,7 @@ ${this.content}
|
|
| 380 |
createdAt: nowDate,
|
| 381 |
expireAt: new Date(nowDate.valueOf() + this.cacheRetentionMs)
|
| 382 |
});
|
| 383 |
-
SearchResult.save(record).catch((err) => {
|
| 384 |
this.logger.warn(`Failed to cache search result`, { err });
|
| 385 |
});
|
| 386 |
|
|
|
|
| 380 |
createdAt: nowDate,
|
| 381 |
expireAt: new Date(nowDate.valueOf() + this.cacheRetentionMs)
|
| 382 |
});
|
| 383 |
+
SearchResult.save(record.degradeForFireStore()).catch((err) => {
|
| 384 |
this.logger.warn(`Failed to cache search result`, { err });
|
| 385 |
});
|
| 386 |
|