Schedule the task
This commit is contained in:
committed by
M. Shull
parent
ac54e198bf
commit
232ef05e81
@ -140,7 +140,7 @@ class Populator {
|
|||||||
$this->updateMetaFields();
|
$this->updateMetaFields();
|
||||||
$this->scheduleInitialInactiveSubscribersCheck();
|
$this->scheduleInitialInactiveSubscribersCheck();
|
||||||
$this->scheduleAuthorizedSendingEmailsCheck();
|
$this->scheduleAuthorizedSendingEmailsCheck();
|
||||||
$this->initLastAnnouncementDate();
|
$this->scheduleBeamer();
|
||||||
// Will be uncommented on task [MAILPOET-1998]
|
// Will be uncommented on task [MAILPOET-1998]
|
||||||
// $this->updateFormsSuccessMessages();
|
// $this->updateFormsSuccessMessages();
|
||||||
}
|
}
|
||||||
@ -551,10 +551,12 @@ class Populator {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
private function initLastAnnouncementDate() {
|
private function scheduleBeamer() {
|
||||||
if (!$this->settings->get('last_announcement_date')) {
|
if (!$this->settings->get('last_announcement_date')) {
|
||||||
$beamer = new Beamer($this->settings, WPFunctions::get());
|
$this->scheduleTask(
|
||||||
$beamer->setLastAnnouncementDate();
|
Beamer::TASK_TYPE,
|
||||||
|
Carbon::createFromTimestamp(WPFunctions::get()->currentTime('timestamp'))
|
||||||
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user