Rostislav Wolny
33f4b2d729
Replace usage of WP's current_time without gmt parameter in libs
...
This commit replaces usages by Carbon::now or in case we need a timestamp it
keeps current_time but adds the gtm parameter as true.
[MAILPOET-6142]
2024-08-19 15:29:42 +02:00
Jan Jakes
ff6a98fae1
Replace deprecated array types with Doctrine's ArrayParameterType
...
[MAILPOET-6142]
2024-08-19 15:29:42 +02:00
Jan Jakes
a947dd36cd
Use refreshAll() helper for batch updates
...
[MAILPOET-5845]
2024-02-02 12:48:40 +01:00
Jan Jakes
bcc96d27bb
Delete scheduled tasks subscribers using a repository
...
[MAILPOET-5845]
2024-02-02 12:48:40 +01:00
Oluwaseun Olorunsola
639d779088
Unify ProcessedAt timezone
...
Fix a problem in the codebase where we create, schedule and update newsletters in the user time zone, but we set the ProcessedAt with another timezone
Also, `Carbon::createFromTimestamp($this->wp->currentTime('mysql'))` is not a valid date.
It would return date: '1970-01-01 00:35:29.000000'
MAILPOET-5795
2023-12-25 21:38:02 +01:00
Jan Jakes
45f5803293
Sync bulk deletes of scheduled task subscribers to entity manager
...
Fixes: https://github.com/mailpoet/mailpoet/issues/5281
[MAILPOET-5745]
2023-12-04 12:13:51 +01:00
Rodrigo Primo
18d34202a8
Remove remaining uses of the ScheduledTaskSubscriber model from Sending
...
[MAILPOET-4368]
2023-10-25 21:09:39 +02:00
Rodrigo Primo
8b4e747499
Refactor Sending::saveSubscriberError() to use Doctrine instead of Paris
...
[MAILPOET-4368]
2023-10-25 21:09:39 +02:00
Rodrigo Primo
fefaf174cd
Refactor Sending::removeSubscribers() to use Doctrine instead of Paris
...
[MAILPOET-4368]
2023-10-25 21:09:39 +02:00
Rodrigo Primo
59d4ce3ba2
Update checkCompleted() to also change the processedAt field
...
This commit updates the method ScheduledTaskSubscribersRepository::checkCompleted() to update the processedAt field of the Scheduled Task. The method was added in f62d9b4167
and I believe it is meant to be a replacement to \MailPoet\Tasks\Subscribers::checkCompleted(). The original method updates the processedAt field, so I'm assuming the new method should update as well. I found this while working on refactoring \MailPoet\Tasks\Sending::removeSubscribers() to use Doctrine as this method calls \MailPoet\Tasks\Subscribers::checkCompleted() internaly.
[MAILPOET-4368]
2023-10-25 21:09:39 +02:00
Rodrigo Primo
8fd8b8f193
Refactor Sending::setSubscribers() to use Doctrine instead of Paris
...
[MAILPOET-4368]
2023-10-25 10:31:45 +02:00
Rodrigo Primo
6a438f68d8
Remove duplicated method in ScheduledTaskSubscribersRepository
...
[MAILPOET-5422]
2023-06-23 16:59:32 +02:00
Jan Lysý
2547f4bfbd
Replace old model usages by Doctrine
...
[MAILPOET-4303]
2023-03-22 09:20:11 +01:00
Jan Lysý
2ead4214cd
Move query with inserting task subscribers to repository
...
[MAILPOET-4303]
2023-03-22 09:20:11 +01:00
Jan Lysý
20e435872f
Add method for update processed subscribers
...
[MAILPOET-4369]
2023-03-02 12:39:35 +02:00
Jan Lysý
a1e96c63a0
Remove old model usages from AutomaticEmailScheduler
...
[MAILPOET-4372]
2022-10-12 11:44:37 +02:00
Rodrigo Primo
2ecf5fc2fa
Simplify code by using intval() instead of if
...
[MAILPOET-4357]
2022-08-16 15:03:52 +02:00
Rodrigo Primo
6127336eab
Simplify code by removing some duplication
...
[MAILPOET-4357]
2022-08-16 15:03:52 +02:00
Rodrigo Primo
d8770675a4
Replace Paris models with Doctrine entities in BatchIterator
...
[MAILPOET-4357]
2022-08-16 15:03:52 +02:00
Jan Lysý
155445b313
Remove old model from SendingQueue Migration
...
[MAILPOET-4358]
2022-08-01 13:09:20 +02:00
Jan Jakes
9f790efbf0
Move plugin files to a subfolder
...
[MAILPOET-3988]
2022-01-18 15:30:22 +01:00