Ensure newsletter has state sending when resuming sending
[MAILPOET-2819]
This commit is contained in:
committed by
Veljko V
parent
698e9f00c1
commit
317257bfc4
@@ -59,6 +59,7 @@ class SendingQueue extends Model {
|
|||||||
if ($this->countProcessed === $this->countTotal) {
|
if ($this->countProcessed === $this->countTotal) {
|
||||||
return $this->complete();
|
return $this->complete();
|
||||||
} else {
|
} else {
|
||||||
|
$this->newsletter()->findOne()->setStatus(Newsletter::STATUS_SENDING);
|
||||||
return $this->task()->findOne()->resume();
|
return $this->task()->findOne()->resume();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user