Check API key daily

[MAILPOET-2396]
This commit is contained in:
Amine Ben hammou
2019-12-11 14:34:56 +01:00
committed by Jack Kitterhing
parent 20eccaad67
commit e1de593174

View File

@ -31,5 +31,10 @@ abstract class KeyCheckWorker extends SimpleWorker {
return true;
}
public function getNextRunDate() {
$date = Carbon::createFromTimestamp($this->wp->currentTime('timestamp'));
return $date->startOfDay()->addDay();
}
public abstract function checkKey();
}