Skip to content

Commit

Permalink
Decouple notifications from account in datasource
Browse files Browse the repository at this point in the history
  • Loading branch information
iamacook committed Jul 30, 2024
1 parent c63bf4a commit 8badc91
Show file tree
Hide file tree
Showing 5 changed files with 334 additions and 237 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import { NotificationType } from '@/domain/notifications/entities-v2/notificatio
// TODO: Move to domain
export function upsertSubscriptionsDtoBuilder(): IBuilder<UpsertSubscriptionsDto> {
return new Builder<UpsertSubscriptionsDto>()
.with('account', getAddress(faker.finance.ethereumAddress()))
.with('cloudMessagingToken', faker.string.alphanumeric({ length: 10 }))
.with('deviceType', faker.helpers.arrayElement(Object.values(DeviceType)))
.with('deviceUuid', faker.string.uuid() as Uuid)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import { Uuid } from '@/domain/notifications/entities-v2/uuid.entity';

// TODO: Move to domain
export type UpsertSubscriptionsDto = {
account: `0x${string}`;
cloudMessagingToken: string;
safes: Array<{
chainId: string;
Expand Down
Loading

0 comments on commit 8badc91

Please sign in to comment.