Skip to content

Commit

Permalink
fix(backend): correct app-type notification schema (#14471)
Browse files Browse the repository at this point in the history
  • Loading branch information
zyoshoka authored Aug 29, 2024
1 parent b6fdd71 commit 3e85052
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion packages/backend/src/models/Notification.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ export type MiNotification = {
/**
* アプリ通知のbody
*/
customBody: string | null;
customBody: string;

/**
* アプリ通知のheader
Expand Down
4 changes: 2 additions & 2 deletions packages/backend/src/models/json-schema/notification.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
},
},
}, {
Expand Down
8 changes: 4 additions & 4 deletions packages/misskey-js/src/autogen/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4253,17 +4253,17 @@ export type components = {
/** @enum {string} */
type: 'achievementEarned';
achievement: string;
} | {
} | ({
/** Format: id */
id: string;
/** Format: date-time */
createdAt: string;
/** @enum {string} */
type: 'app';
body: string;
header: string;
icon: string;
} | {
header: string | null;
icon: string | null;
}) | {
/** Format: id */
id: string;
/** Format: date-time */
Expand Down

0 comments on commit 3e85052

Please sign in to comment.