diff options
| author | zyoshoka <107108195+zyoshoka@users.noreply.github.com> | 2024-08-29 18:57:44 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-08-29 18:57:44 +0900 |
| commit | 3e85052754b1c86e3c3b16d2e29b5aef6db04ccf (patch) | |
| tree | 24a564d9d1759a8bfdc03bb63eeef0c561f74173 | |
| parent | 消し忘れ (diff) | |
| download | misskey-3e85052754b1c86e3c3b16d2e29b5aef6db04ccf.tar.gz misskey-3e85052754b1c86e3c3b16d2e29b5aef6db04ccf.tar.bz2 misskey-3e85052754b1c86e3c3b16d2e29b5aef6db04ccf.zip | |
fix(backend): correct `app`-type notification schema (#14471)
| -rw-r--r-- | packages/backend/src/models/Notification.ts | 2 | ||||
| -rw-r--r-- | packages/backend/src/models/json-schema/notification.ts | 4 | ||||
| -rw-r--r-- | packages/misskey-js/src/autogen/types.ts | 8 |
3 files changed, 7 insertions, 7 deletions
diff --git a/packages/backend/src/models/Notification.ts b/packages/backend/src/models/Notification.ts index df88b99636..87d8c16cb3 100644 --- a/packages/backend/src/models/Notification.ts +++ b/packages/backend/src/models/Notification.ts @@ -85,7 +85,7 @@ export type MiNotification = { /** * アプリ通知のbody */ - customBody: string | null; + customBody: string; /** * アプリ通知のheader diff --git a/packages/backend/src/models/json-schema/notification.ts b/packages/backend/src/models/json-schema/notification.ts index b4c4442758..6f5fb8247b 100644 --- a/packages/backend/src/models/json-schema/notification.ts +++ b/packages/backend/src/models/json-schema/notification.ts @@ -311,11 +311,11 @@ export const packedNotificationSchema = { }, header: { type: 'string', - optional: false, nullable: false, + optional: false, nullable: true, }, icon: { type: 'string', - optional: false, nullable: false, + optional: false, nullable: true, }, }, }, { diff --git a/packages/misskey-js/src/autogen/types.ts b/packages/misskey-js/src/autogen/types.ts index 0c50825203..3f866a9ab3 100644 --- a/packages/misskey-js/src/autogen/types.ts +++ b/packages/misskey-js/src/autogen/types.ts @@ -4253,7 +4253,7 @@ export type components = { /** @enum {string} */ type: 'achievementEarned'; achievement: string; - } | { + } | ({ /** Format: id */ id: string; /** Format: date-time */ @@ -4261,9 +4261,9 @@ export type components = { /** @enum {string} */ type: 'app'; body: string; - header: string; - icon: string; - } | { + header: string | null; + icon: string | null; + }) | { /** Format: id */ id: string; /** Format: date-time */ |