fix: クエリキャッシュ無効化時の絵文字操作エラーを解消 (#10320)

* disabledCache: trueのときにqueryResultCacheへアクセスしないように

* append changelog
This commit is contained in:
YS
2023-03-14 09:37:14 +09:00
committed by GitHub
parent 850addc619
commit 3cb669a852
10 changed files with 10 additions and 9 deletions

View File

@@ -54,7 +54,7 @@ export default class extends Endpoint<typeof meta, typeof paramDef> {
await this.emojisRepository.delete(emoji.id);
await this.db.queryResultCache!.remove(['meta_emojis']);
await this.db.queryResultCache?.remove(['meta_emojis']);
this.globalEventService.publishBroadcastStream('emojiDeleted', {
emojis: [await this.emojiEntityService.packDetailed(emoji)],