diff options
| author | YS <47836716+yszkst@users.noreply.github.com> | 2023-03-14 09:37:14 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-03-14 09:37:14 +0900 |
| commit | 3cb669a852a89157e80b7e7478024c3f6c782771 (patch) | |
| tree | a01ed5b1f4bfe662bc68e4573f898e1b99f8d789 /packages/backend/src/core | |
| parent | user schemaにあるany型を厳格にした (#10319) (diff) | |
| download | sharkey-3cb669a852a89157e80b7e7478024c3f6c782771.tar.gz sharkey-3cb669a852a89157e80b7e7478024c3f6c782771.tar.bz2 sharkey-3cb669a852a89157e80b7e7478024c3f6c782771.zip | |
fix: クエリキャッシュ無効化時の絵文字操作エラーを解消 (#10320)
* disabledCache: trueのときにqueryResultCacheへアクセスしないように
* append changelog
Diffstat (limited to 'packages/backend/src/core')
| -rw-r--r-- | packages/backend/src/core/CustomEmojiService.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/backend/src/core/CustomEmojiService.ts b/packages/backend/src/core/CustomEmojiService.ts index a1a257fbd1..4ef21e5117 100644 --- a/packages/backend/src/core/CustomEmojiService.ts +++ b/packages/backend/src/core/CustomEmojiService.ts @@ -58,7 +58,7 @@ export class CustomEmojiService { }).then(x => this.emojisRepository.findOneByOrFail(x.identifiers[0])); if (data.host == null) { - await this.db.queryResultCache!.remove(['meta_emojis']); + await this.db.queryResultCache?.remove(['meta_emojis']); this.globalEventService.publishBroadcastStream('emojiAdded', { emoji: await this.emojiEntityService.packDetailed(emoji.id), |