Skip to content

Commit

Permalink
Update ExportCustomEmojisProcessorService.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
kakkokari-gtyih authored Sep 26, 2024
1 parent 4add920 commit 2c4fa0c
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 2c4fa0c

Please sign in to comment.