summaryrefslogtreecommitdiff
path: root/packages/backend/src/models/Notification.ts
diff options
context:
space:
mode:
authorMarie <github@yuugi.dev>2024-11-03 17:59:50 +0100
committerMarie <github@yuugi.dev>2024-12-09 05:32:51 +0100
commitfc9d777dc3161b40c5c62bb65cb03e2c7d8f4380 (patch)
treeaf42af2f205816cb3b833747d2df35935c5f9c92 /packages/backend/src/models/Notification.ts
parentchore: remove leftover log (diff)
downloadsharkey-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/Notification.ts')
-rw-r--r--packages/backend/src/models/Notification.ts5
1 files changed, 5 insertions, 0 deletions
diff --git a/packages/backend/src/models/Notification.ts b/packages/backend/src/models/Notification.ts
index c4f046c565..5003e02d96 100644
--- a/packages/backend/src/models/Notification.ts
+++ b/packages/backend/src/models/Notification.ts
@@ -122,6 +122,11 @@ export type MiNotification = {
createdAt: string;
notifierId: MiUser['id'];
noteId: MiNote['id'];
+} | {
+ type: 'scheduledNoteFailed';
+ id: string;
+ createdAt: string;
+ reason: string;
};
export type MiGroupedNotification = MiNotification | {