fix(backend): 通知読み込みでエラーが発生する場合がある問題を修正

This commit is contained in:
syuilo 2023-04-09 08:02:52 +09:00
parent 038365bf2d
commit b7ed3ddfdd
2 changed files with 2 additions and 1 deletions

View file

@ -21,7 +21,7 @@
- PWA時の絵文字ピッカーの位置をホームバーに重ならないように調整 - PWA時の絵文字ピッカーの位置をホームバーに重ならないように調整
### Server ### Server
- - 通知読み込みでエラーが発生する場合がある問題を修正
## 13.11.0 ## 13.11.0

View file

@ -29,6 +29,7 @@ export class FederatedInstanceService {
toRedisConverter: (value) => JSON.stringify(value), toRedisConverter: (value) => JSON.stringify(value),
fromRedisConverter: (value) => { fromRedisConverter: (value) => {
const parsed = JSON.parse(value); const parsed = JSON.parse(value);
if (parsed == null) return null;
return { return {
...parsed, ...parsed,
firstRetrievedAt: new Date(parsed.firstRetrievedAt), firstRetrievedAt: new Date(parsed.firstRetrievedAt),