fix type errors in NotificationService / NotificationEntityService
This commit is contained in:
parent
b62f6ca042
commit
d7a629e178
2 changed files with 3 additions and 1 deletions
|
|
@ -204,7 +204,6 @@ export class NotificationEntityService implements OnModuleInit {
|
|||
icon: notification.customIcon,
|
||||
} : {}),
|
||||
...(notification.type === 'sharedAccessGranted' ? {
|
||||
tokenId: notification.tokenId,
|
||||
permCount: notification.permCount,
|
||||
rank: notification.rank,
|
||||
} : {}),
|
||||
|
|
|
|||
|
|
@ -46,6 +46,9 @@ export const notificationTypes = [
|
|||
'scheduledNotePosted',
|
||||
'app',
|
||||
'test',
|
||||
'sharedAccessGranted',
|
||||
'sharedAccessRevoked',
|
||||
'sharedAccessLogin',
|
||||
] as const;
|
||||
|
||||
export const groupedNotificationTypes = [
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue