Refactor Statistics Entities to use association
[MAILPOET-3069]
This commit is contained in:
@ -102,7 +102,7 @@ class SubscribersResponseBuilder {
|
||||
|
||||
private function buildUnsubscribes(SubscriberEntity $subscriberEntity): array {
|
||||
$unsubscribes = $this->statisticsUnsubscribesRepository->findBy([
|
||||
'subscriberId' => $subscriberEntity->getId(),
|
||||
'subscriber' => $subscriberEntity,
|
||||
], [
|
||||
'createdAt' => 'desc',
|
||||
]);
|
||||
|
Reference in New Issue
Block a user