Skip to content

Commit

Permalink
Remove notification hook skip tests
Browse files Browse the repository at this point in the history
  • Loading branch information
PooyaRaki committed Jan 14, 2025
1 parent 0c8e6a2 commit 8d7d977
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/domain/hooks/helpers/event-notifications.helper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ import {
} from '@/domain/delegate/v2/delegates.v2.repository.interface';
import { UUID } from 'crypto';
import { NotificationsRepositoryV2Module } from '@/domain/notifications/v2/notifications.repository.module';
import uniqBy from 'lodash/uniqBy';

type EventToNotify =
| DeletedMultisigTransactionEvent
Expand Down Expand Up @@ -168,13 +167,11 @@ export class EventNotificationsHelper {
cloudMessagingToken: string;
}>
> {
const subscriptions = uniqBy(
const subscriptions =
await this.notificationsRepository.getSubscribersBySafe({
chainId: event.chainId,
safeAddress: event.address,
}),
'cloudMessagingToken',
);
});

if (!this.isOwnerOrDelegateOnlyEventToNotify(event)) {
return subscriptions;
Expand Down

0 comments on commit 8d7d977

Please sign in to comment.