summaryrefslogtreecommitdiff
path: root/packages/backend/src/models/json-schema/notification.ts
diff options
context:
space:
mode:
Diffstat (limited to 'packages/backend/src/models/json-schema/notification.ts')
-rw-r--r--packages/backend/src/models/json-schema/notification.ts26
1 files changed, 11 insertions, 15 deletions
diff --git a/packages/backend/src/models/json-schema/notification.ts b/packages/backend/src/models/json-schema/notification.ts
index 27db3bb62c..c6d6e84317 100644
--- a/packages/backend/src/models/json-schema/notification.ts
+++ b/packages/backend/src/models/json-schema/notification.ts
@@ -42,13 +42,9 @@ export const packedNotificationSchema = {
type: 'string',
optional: true, nullable: true,
},
- choice: {
- type: 'number',
- optional: true, nullable: true,
- },
- invitation: {
- type: 'object',
- optional: true, nullable: true,
+ achievement: {
+ type: 'string',
+ optional: true, nullable: false,
},
body: {
type: 'string',
@@ -81,14 +77,14 @@ export const packedNotificationSchema = {
required: ['user', 'reaction'],
},
},
- },
- users: {
- type: 'array',
- optional: true, nullable: true,
- items: {
- type: 'object',
- ref: 'UserLite',
- optional: false, nullable: false,
+ users: {
+ type: 'array',
+ optional: true, nullable: true,
+ items: {
+ type: 'object',
+ ref: 'UserLite',
+ optional: false, nullable: false,
+ },
},
},
} as const;