Commit Graph

12 Commits

Author SHA1 Message Date
6a438f68d8 Remove duplicated method in ScheduledTaskSubscribersRepository
[MAILPOET-5422]
2023-06-23 16:59:32 +02:00
926620e8f8 Ignore strict types rule in all existing files that don't have it
[MAILPOET-2688]
2022-11-29 15:04:09 +01:00
cd3652eaa6 Fix canceling multiple automatic emails
When we deleted sending queue using SQL it remained in the entity manager
and subsequent flush (not the first one) triggered the error, because it didn't know the ScheduledTask entity attached
to the orphaned SendingQueue entity.

This commit fixes this by refactoring deletion of sending queue using standard repository method.
After fixing the issue for sending queue there was another issue with SchedulesTaskSubscriberEntity that remained in memory.
I fixed that by detaching those. Theoretically there might be many SchedulesTaskSubscriberEntities for an Automatic email so
I consider still safer to delete using SQL and if there are some loaded (in this case there is one) detach them.
[MAILPOET-4741]
2022-10-24 14:03:54 +02:00
d2247a1c76 Refactor parameter from int to entity
[MAILPOET-4372]
2022-10-12 11:44:37 +02:00
c93c42518a Add return value for backward compatibility in tests
[MAILPOET-4372]
2022-10-12 11:44:37 +02:00
a1e96c63a0 Remove old model usages from AutomaticEmailScheduler
[MAILPOET-4372]
2022-10-12 11:44:37 +02:00
6503e49eda Add Newsletter entity support
[MAILPOET-4141]
2022-06-20 12:00:47 +02:00
c34356b99c Remove optional $wp parameter in getScheduledTimeWithDelay method
[MAILPOET-4252]
2022-04-25 12:08:18 +02:00
ca3f8bdc43 Make Scheduler non-static
[MAILPOET-4252]
2022-04-25 12:08:18 +02:00
ec25f1aaf7 Add comment explaining optional callback
[MAILPOET-3518]
2022-02-09 16:33:06 +01:00
ec8ff46a29 Only store relevant meta for product purchases
[MAILPOET-3518]
2022-02-09 16:33:06 +01:00
9f790efbf0 Move plugin files to a subfolder
[MAILPOET-3988]
2022-01-18 15:30:22 +01:00