diff options
| author | Marie <github@yuugi.dev> | 2024-11-03 17:59:50 +0100 |
|---|---|---|
| committer | Marie <github@yuugi.dev> | 2024-12-09 05:32:51 +0100 |
| commit | fc9d777dc3161b40c5c62bb65cb03e2c7d8f4380 (patch) | |
| tree | af42af2f205816cb3b833747d2df35935c5f9c92 /packages/backend/src/models/json-schema | |
| parent | chore: remove leftover log (diff) | |
| download | sharkey-fc9d777dc3161b40c5c62bb65cb03e2c7d8f4380.tar.gz sharkey-fc9d777dc3161b40c5c62bb65cb03e2c7d8f4380.tar.bz2 sharkey-fc9d777dc3161b40c5c62bb65cb03e2c7d8f4380.zip | |
upd: add notification for failures, add reasons for failure, apply suggestions
Diffstat (limited to 'packages/backend/src/models/json-schema')
| -rw-r--r-- | packages/backend/src/models/json-schema/notification.ts | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/packages/backend/src/models/json-schema/notification.ts b/packages/backend/src/models/json-schema/notification.ts index 990e8957cf..69bd9531ec 100644 --- a/packages/backend/src/models/json-schema/notification.ts +++ b/packages/backend/src/models/json-schema/notification.ts @@ -376,6 +376,20 @@ export const packedNotificationSchema = { type: { type: 'string', optional: false, nullable: false, + enum: ['scheduledNoteFailed'], + }, + reason: { + type: 'string', + optional: false, nullable: false, + }, + }, + }, { + type: 'object', + properties: { + ...baseSchema.properties, + type: { + type: 'string', + optional: false, nullable: false, enum: ['reaction:grouped'], }, note: { |