Add sending resume when recheck keys
[MAILPOET-4047]
This commit is contained in:
@ -211,6 +211,11 @@ class Services extends APIEndpoint {
|
|||||||
$this->mssWorker->checkKey();
|
$this->mssWorker->checkKey();
|
||||||
$this->premiumWorker->init();
|
$this->premiumWorker->init();
|
||||||
$this->premiumWorker->checkKey();
|
$this->premiumWorker->checkKey();
|
||||||
|
// continue sending when it is paused
|
||||||
|
$mailerLog = MailerLog::getMailerLog();
|
||||||
|
if (isset($mailerLog['status']) && $mailerLog['status'] === MailerLog::STATUS_PAUSED) {
|
||||||
|
MailerLog::resumeSending();
|
||||||
|
}
|
||||||
return $this->successResponse();
|
return $this->successResponse();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user