Improve typing
This commit is contained in:
parent
05c7cacdd1
commit
9bee9d20f7
9 changed files with 24 additions and 10 deletions
|
|
@ -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' ? {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue