summaryrefslogtreecommitdiff
path: root/src/models/repositories/notification.ts
diff options
context:
space:
mode:
authortamaina <tamaina@hotmail.co.jp>2020-05-26 14:33:55 +0900
committertamaina <tamaina@hotmail.co.jp>2020-05-26 14:33:55 +0900
commit9bee9d20f751d2cf5833c5b2cf8be875496250c2 (patch)
tree200771d0da80c63cfa5609d7d73141be25f0b0b1 /src/models/repositories/notification.ts
parentResolve https://github.com/syuilo/misskey/pull/6406#issuecomment-633203670 (diff)
downloadsharkey-9bee9d20f751d2cf5833c5b2cf8be875496250c2.tar.gz
sharkey-9bee9d20f751d2cf5833c5b2cf8be875496250c2.tar.bz2
sharkey-9bee9d20f751d2cf5833c5b2cf8be875496250c2.zip
Improve typing
Diffstat (limited to 'src/models/repositories/notification.ts')
-rw-r--r--src/models/repositories/notification.ts1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/models/repositories/notification.ts b/src/models/repositories/notification.ts
index b484c43c5e..40f43d6c15 100644
--- a/src/models/repositories/notification.ts
+++ b/src/models/repositories/notification.ts
@@ -19,6 +19,7 @@ export class NotificationRepository extends Repository<Notification> {
id: notification.id,
createdAt: notification.createdAt.toISOString(),
type: notification.type,
+ isRead: notification.isRead,
userId: notification.notifierId,
user: notification.notifierId ? Users.pack(notification.notifier || notification.notifierId) : null,
...(notification.type === 'mention' ? {