Use NewslettersListingRepository for newsletter groups

[MAILPOET-2645]
This commit is contained in:
Jan Jakeš
2020-03-02 10:52:33 +01:00
committed by Jack Kitterhing
parent b4bcc5179c
commit 8f8439d47f
2 changed files with 105 additions and 1 deletions

View File

@ -525,7 +525,7 @@ class Newsletters extends APIEndpoint {
$items = $this->newsletterListingRepository->getData($definition);
$count = $this->newsletterListingRepository->getCount($definition);
$filters = $this->newsletterListingRepository->getFilters($definition);
$groups = Newsletter::groups($data);
$groups = $this->newsletterListingRepository->getGroups($definition);
$data = [];
foreach ($items as $newsletter) {