Commit Graph

7 Commits

Author SHA1 Message Date
525c80bac4 Fix PHPStan warnings in lib
[MAILPOET-5751]
2023-12-13 11:48:14 +01:00
6e0b639fd3 Use intval instead of (int) to remove PHPStan errors
[MAILPOET-4281]
2022-05-09 13:05:21 +02:00
bb3d1c2a7c Fix type error in meta in SubscribersEmailCount task
[MAILPOET-4281]
2022-05-09 13:05:21 +02:00
36baf4c4e3 Simplify the query to calculate lifetime emails
Get max and count of subscribers in the query.

[MAILPOET-4177]
2022-04-07 10:17:38 +02:00
7ab8055b69 Do not update email_count if there are no new emails
[MAILPOET-4177]
2022-04-07 10:17:38 +02:00
8077322a29 Simplify the query to calculate lifetime emails
Also rename email_counts to email_count and update tests

[MAILPOET-4177]
2022-04-07 10:17:38 +02:00
8b7b234446 Create controller to count emails per subscriber
This controller is built to be called by a cron SimpleWorker.

[MAILPOET-4177]
2022-04-07 10:17:38 +02:00