Skip to content

Commit

Permalink
Fix Mailer segment provider users acquiring
Browse files Browse the repository at this point in the history
- Provided segment code needs to be processed before fetching
users from database.

remp/mnt#114

(cherry picked from commit bb67847)
  • Loading branch information
Matefko authored and rootpd committed Sep 4, 2023
1 parent 04d69d4 commit 236dade
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ public function list(): array

public function users(array $segment): array
{
return $this->userSubscriptionsRepository->findSubscribedUserIdsByMailTypeCode($segment['code']);
$code = preg_replace('/^subscribers-/', '', $segment['code']);
return $this->userSubscriptionsRepository->findSubscribedUserIdsByMailTypeCode($code);
}
}
3 changes: 3 additions & 0 deletions changelogs/CHANGELOG-v3.2.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
## [3.2] - 2023-08-24

- [3.2.1] [Mailer]: Fixed Mailer segment provider users acquiring. Provided segment code needs to be processed before fetching users from database. remp/mnt#114

### Project

- Removed `dockerize` from Dockerfiles across the project. It's been replaced by native Docker Compose healthcheck feature.
Expand Down Expand Up @@ -27,6 +29,7 @@
---

[3.2]: https://github.com/remp2020/remp/compare/3.1.0...3.2.0
[3.2.1]: https://github.com/remp2020/remp/compare/3.2.0...3.2.1

[Beam]: https://github.com/remp2020/remp/tree/master/Beam
[Campaign]: https://github.com/remp2020/remp/tree/master/Campaign
Expand Down

0 comments on commit 236dade

Please sign in to comment.