Skip to content

Commit

Permalink
[ci skip] improve readability
Browse files Browse the repository at this point in the history
  • Loading branch information
syuilo committed Apr 13, 2023
1 parent 3f57119 commit 2a7ba37
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/backend/src/core/CustomEmojiService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export class CustomEmojiService {
if (!Array.isArray(JSON.parse(value))) return undefined; // 古いバージョンの壊れたキャッシュが残っていることがある(そのうち消す)
return new Map(JSON.parse(value).map((x: Serialized<Emoji>) => [x.name, {
...x,
updatedAt: x.updatedAt && new Date(x.updatedAt),
updatedAt: x.updatedAt ? new Date(x.updatedAt) : null,
}]));
},
});
Expand Down

0 comments on commit 2a7ba37

Please sign in to comment.