From c908faee5f77d852c40bdd04ca760c24d4ec5908 Mon Sep 17 00:00:00 2001 From: iamacook Date: Tue, 30 Jul 2024 18:28:36 +0200 Subject: [PATCH] Remove unnecessary entity and fix typos --- .../entities/upsert-subscriptions.dto.entity.ts | 14 -------------- src/domain/hooks/hooks.repository.interface.ts | 2 +- src/domain/hooks/hooks.repository.ts | 2 +- src/routes/hooks/hooks.module.ts | 2 +- 4 files changed, 3 insertions(+), 17 deletions(-) delete mode 100644 src/datasources/notifications/entities/upsert-subscriptions.dto.entity.ts diff --git a/src/datasources/notifications/entities/upsert-subscriptions.dto.entity.ts b/src/datasources/notifications/entities/upsert-subscriptions.dto.entity.ts deleted file mode 100644 index e896cdea03..0000000000 --- a/src/datasources/notifications/entities/upsert-subscriptions.dto.entity.ts +++ /dev/null @@ -1,14 +0,0 @@ -import { DeviceType } from '@/domain/notifications/entities-v2/device-type.entity'; -import { NotificationType } from '@/domain/notifications/entities-v2/notification-type.entity'; -import { Uuid } from '@/domain/notifications/entities-v2/uuid.entity'; - -export type UpsertSubscriptionsDto = { - cloudMessagingToken: string; - safes: Array<{ - chainId: string; - address: `0x${string}`; - notificationTypes: Array; - }>; - deviceType: DeviceType; - deviceUuid?: Uuid; -}; diff --git a/src/domain/hooks/hooks.repository.interface.ts b/src/domain/hooks/hooks.repository.interface.ts index 048c078908..a01e3471ae 100644 --- a/src/domain/hooks/hooks.repository.interface.ts +++ b/src/domain/hooks/hooks.repository.interface.ts @@ -41,7 +41,7 @@ export interface IHooksRepository { }) export class HooksRepositoryWithNotificationsModule {} -// TODO: Remove after notifications FF is enables +// TODO: Remove after notifications FF is enabled // Note: trying to convert this into a dynamic module proved to be too complex // due to config injection issues from the ConfigurationService so this is a // temporary solution diff --git a/src/domain/hooks/hooks.repository.ts b/src/domain/hooks/hooks.repository.ts index b621d07a13..6bec17880b 100644 --- a/src/domain/hooks/hooks.repository.ts +++ b/src/domain/hooks/hooks.repository.ts @@ -612,7 +612,7 @@ export class HooksRepositoryWithNotifications implements IHooksRepository { } } -// TODO: Remove after notifications FF is enables +// TODO: Remove after notifications FF is enabled // Note: trying to convert this into a dynamic module proved to be too complex // due to config injection issues from the ConfigurationService so this is a // temporary solution diff --git a/src/routes/hooks/hooks.module.ts b/src/routes/hooks/hooks.module.ts index f818b236ab..8dfab29034 100644 --- a/src/routes/hooks/hooks.module.ts +++ b/src/routes/hooks/hooks.module.ts @@ -13,7 +13,7 @@ import { HooksService } from '@/routes/hooks/hooks.service'; }) export class HooksModuleWithNotifications {} -// TODO: Remove after notifications FF is enables +// TODO: Remove after notifications FF is enabled // Note: trying to convert this into a dynamic module proved to be too complex // due to config injection issues from the ConfigurationService so this is a // temporary solution