summaryrefslogtreecommitdiff
path: root/packages/backend/src/models/Notification.ts
diff options
context:
space:
mode:
authorMarie <marie@kaifa.ch>2024-02-20 15:10:41 +0000
committerAmelia Yukii <amelia.yukii@shourai.de>2024-02-20 15:10:41 +0000
commit4a13508da0a5d930b4d73bb4208df39a578e7796 (patch)
tree4043fefdc93e3c66159d6a6ac565591fa25642ce /packages/backend/src/models/Notification.ts
parentmerge: Warn when missing alt text (!423) (diff)
downloadsharkey-4a13508da0a5d930b4d73bb4208df39a578e7796.tar.gz
sharkey-4a13508da0a5d930b4d73bb4208df39a578e7796.tar.bz2
sharkey-4a13508da0a5d930b4d73bb4208df39a578e7796.zip
Note Edited notification type
Diffstat (limited to 'packages/backend/src/models/Notification.ts')
-rw-r--r--packages/backend/src/models/Notification.ts6
1 files changed, 6 insertions, 0 deletions
diff --git a/packages/backend/src/models/Notification.ts b/packages/backend/src/models/Notification.ts
index df88b99636..4ed71a106c 100644
--- a/packages/backend/src/models/Notification.ts
+++ b/packages/backend/src/models/Notification.ts
@@ -107,6 +107,12 @@ export type MiNotification = {
type: 'test';
id: string;
createdAt: string;
+} | {
+ type: 'edited';
+ id: string;
+ createdAt: string;
+ notifierId: MiUser['id'];
+ noteId: MiNote['id'];
};
export type MiGroupedNotification = MiNotification | {