Revert "feat: お知らせの優先順位機能 (#118)"

This reverts commit fe0f7a91a3.
This commit is contained in:
まっちゃとーにゅ 2023-08-15 16:44:54 +09:00
parent eeef3965b7
commit 04fefb2056
No known key found for this signature in database
GPG key ID: 6AFBBF529601C1DB
12 changed files with 69 additions and 131 deletions

View file

@ -31,7 +31,6 @@ export const paramDef = {
title: { type: 'string', minLength: 1 },
text: { type: 'string', minLength: 1 },
imageUrl: { type: 'string', nullable: true, minLength: 0 },
displayOrder: { type: 'number' },
userId: { type: 'string', nullable: true, format: 'misskey:id' },
closeDuration: { type: 'number', nullable: false },
},
@ -63,7 +62,6 @@ export default class extends Endpoint<typeof meta, typeof paramDef> {
text: ps.text,
/* eslint-disable-next-line @typescript-eslint/prefer-nullish-coalescing -- 空の文字列の場合、nullを渡すようにするため */
imageUrl: ps.imageUrl || null,
displayOrder: ps.displayOrder,
userId: ps.userId ?? null,
closeDuration: ps.closeDuration,
});