- Runs mailer and cron execution limit checks at the same and in 3

locations: before processing, after each send operations and after queue
  processing
- Fixes an issue with sending continuing when newsletter is trashed
- Updates unit tests
This commit is contained in:
Vlad
2016-11-30 19:47:27 -05:00
parent 732ea59e34
commit 398109dcf7
3 changed files with 113 additions and 29 deletions

View File

@ -21,7 +21,7 @@ class Newsletter {
}
function getAndPreProcess($queue) {
$newsletter = $queue->newsletter()->findOne();
$newsletter = $queue->newsletter()->whereNull('deleted_at')->findOne();
if(!$newsletter) {
return false;
}