fix type errors in NotificationService / NotificationEntityService

This commit is contained in:
Hazelnoot 2025-06-22 13:13:35 -04:00
parent b62f6ca042
commit d7a629e178
2 changed files with 3 additions and 1 deletions

View file

@ -204,7 +204,6 @@ export class NotificationEntityService implements OnModuleInit {
icon: notification.customIcon,
} : {}),
...(notification.type === 'sharedAccessGranted' ? {
tokenId: notification.tokenId,
permCount: notification.permCount,
rank: notification.rank,
} : {}),

View file

@ -46,6 +46,9 @@ export const notificationTypes = [
'scheduledNotePosted',
'app',
'test',
'sharedAccessGranted',
'sharedAccessRevoked',
'sharedAccessLogin',
] as const;
export const groupedNotificationTypes = [