Add sending resume when recheck keys

[MAILPOET-4047]
This commit is contained in:
Jan Lysý
2022-02-25 10:05:46 +01:00
committed by Veljko V
parent eced7d27cd
commit 43ca802a44

View File

@ -211,6 +211,11 @@ class Services extends APIEndpoint {
$this->mssWorker->checkKey();
$this->premiumWorker->init();
$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();
}