From 2c4fa0c369a28fdc54ccbb26a9b3067999400de7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=81=8B=E3=81=A3=E3=81=93=E3=81=8B=E3=82=8A?= <67428053+kakkokari-gtyih@users.noreply.github.com> Date: Thu, 26 Sep 2024 13:53:20 +0900 Subject: [PATCH] Update ExportCustomEmojisProcessorService.ts --- .../src/queue/processors/ExportCustomEmojisProcessorService.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/backend/src/queue/processors/ExportCustomEmojisProcessorService.ts b/packages/backend/src/queue/processors/ExportCustomEmojisProcessorService.ts index bbc1a5aef8e5..8a87233fd63d 100644 --- a/packages/backend/src/queue/processors/ExportCustomEmojisProcessorService.ts +++ b/packages/backend/src/queue/processors/ExportCustomEmojisProcessorService.ts @@ -87,9 +87,10 @@ export class ExportCustomEmojisProcessorService { // job.data.categoriesに指定がある場合はそのカテゴリのみをエクスポート const categories = job.data.categories as (string | null)[] | null; this.logger.info(`Exporting categories: ${categories}`); - if (categories) { + if (categories != null) { customEmojis = customEmojis.filter(emoji => { if (emoji.category == null || emoji.category === 'null') { + // カテゴリがnull、つまりカテゴリなしのもの return categories.includes(null) || categories.includes('null'); } else { return categories.includes(emoji.category);