From d7a629e178f560126a639a787c7a835bf171b1c8 Mon Sep 17 00:00:00 2001 From: Hazelnoot Date: Sun, 22 Jun 2025 13:13:35 -0400 Subject: [PATCH] fix type errors in NotificationService / NotificationEntityService --- .../backend/src/core/entities/NotificationEntityService.ts | 1 - packages/backend/src/types.ts | 3 +++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/backend/src/core/entities/NotificationEntityService.ts b/packages/backend/src/core/entities/NotificationEntityService.ts index 45c55208a3..50af1580c6 100644 --- a/packages/backend/src/core/entities/NotificationEntityService.ts +++ b/packages/backend/src/core/entities/NotificationEntityService.ts @@ -204,7 +204,6 @@ export class NotificationEntityService implements OnModuleInit { icon: notification.customIcon, } : {}), ...(notification.type === 'sharedAccessGranted' ? { - tokenId: notification.tokenId, permCount: notification.permCount, rank: notification.rank, } : {}), diff --git a/packages/backend/src/types.ts b/packages/backend/src/types.ts index 8f37b45004..e799447117 100644 --- a/packages/backend/src/types.ts +++ b/packages/backend/src/types.ts @@ -46,6 +46,9 @@ export const notificationTypes = [ 'scheduledNotePosted', 'app', 'test', + 'sharedAccessGranted', + 'sharedAccessRevoked', + 'sharedAccessLogin', ] as const; export const groupedNotificationTypes = [