Merge branch 'develop' into mkjs-n

This commit is contained in:
syuilo
2023-05-26 17:11:10 +09:00
8 changed files with 93 additions and 10 deletions

View File

@@ -21,7 +21,8 @@ export default class extends Endpoint<'admin/announcements/update'> {
updatedAt: new Date(),
title: ps.title,
text: ps.text,
imageUrl: ps.imageUrl,
/* eslint-disable-next-line @typescript-eslint/prefer-nullish-coalescing -- 空の文字列の場合、nullを渡すようにするため */
imageUrl: ps.imageUrl || null,
});
});
}