Pauses sending if processed subscribers list can't be updated

This commit is contained in:
Vlad
2018-01-08 22:51:11 -05:00
committed by pavel-mailpoet
parent 6c25fab6d6
commit 19c7efc9ef
3 changed files with 49 additions and 4 deletions

View File

@ -151,7 +151,7 @@ class SendingQueue extends Model {
)
);
$this->subscribers = $subscribers;
$this->updateCount();
return $this->updateCount()->getErrors() === false;
}
function updateCount() {
@ -175,5 +175,4 @@ class SendingQueue extends Model {
}
return $rendered_body;
}
}