Skip subscribes deactivation when tracking is disabled
[MAILPOET-1791]
This commit is contained in:
committed by
M. Shull
parent
b04e235171
commit
8be29b0863
@ -31,7 +31,8 @@ class InactiveSubscribers extends SimpleWorker {
|
||||
|
||||
function processTaskStrategy(ScheduledTask $task) {
|
||||
$days_to_inactive = (int)$this->settings->get('deactivate_subscriber_after_inactive_days');
|
||||
if ($days_to_inactive === 0) {
|
||||
$tracking_enabled = (bool)$this->settings->get('tracking.enabled');
|
||||
if ($days_to_inactive === 0 || !$tracking_enabled) {
|
||||
self::schedule();
|
||||
return true;
|
||||
}
|
||||
|
Reference in New Issue
Block a user