Set even 30 days old newsletters as scheduled when reactivating an email

[MAILPOET-2709]
This commit is contained in:
Rostislav Wolny
2020-03-30 14:04:06 +02:00
committed by Veljko V
parent 78dc682763
commit dc55fb64cd
3 changed files with 13 additions and 3 deletions

View File

@ -79,7 +79,7 @@ class ScheduledTask extends Model {
'WHERE ' .
'q.`newsletter_id` = ' . $newsletter->id() .
' AND t.`status` = "' . self::STATUS_PAUSED . '" ' .
' AND t.`scheduled_at` > NOW()'
' AND t.`scheduled_at` > CURDATE() - INTERVAL 30 DAY'
);
}