summaryrefslogtreecommitdiff
path: root/packages/backend/src/models/Notification.ts
diff options
context:
space:
mode:
authorMarie <github@yuugi.dev>2024-11-04 11:22:37 +0100
committerMarie <github@yuugi.dev>2024-12-09 05:33:19 +0100
commit1d3c8253981fba2d431df2f5cc12dd78b21d37bc (patch)
tree263d59f8f07b27d4d6192c2273eca3195e5e8bc1 /packages/backend/src/models/Notification.ts
parentchore: remove from note required type (diff)
downloadsharkey-1d3c8253981fba2d431df2f5cc12dd78b21d37bc.tar.gz
sharkey-1d3c8253981fba2d431df2f5cc12dd78b21d37bc.tar.bz2
sharkey-1d3c8253981fba2d431df2f5cc12dd78b21d37bc.zip
upd: add notification for when scheduled note gets posted
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 5003e02d96..53003a0a5a 100644
--- a/packages/backend/src/models/Notification.ts
+++ b/packages/backend/src/models/Notification.ts
@@ -127,6 +127,11 @@ export type MiNotification = {
id: string;
createdAt: string;
reason: string;
+} | {
+ type: 'scheduledNotePosted';
+ id: string;
+ createdAt: string;
+ noteId: MiNote['id'];
};
export type MiGroupedNotification = MiNotification | {