Make static methods in cron workers non-static
[MAILPOET-2538]
This commit is contained in:
committed by
Jack Kitterhing
parent
ba41f4901e
commit
cd93940940
@@ -22,12 +22,12 @@ class SubscriberLinkTokens extends SimpleWorker {
|
||||
sprintf('UPDATE %s SET link_token = SUBSTRING(MD5(CONCAT(?, email)), 1, ?) WHERE link_token IS NULL LIMIT ?', Subscriber::$_table),
|
||||
[$auth_key, Subscriber::OBSOLETE_LINK_TOKEN_LENGTH, self::BATCH_SIZE]
|
||||
);
|
||||
self::schedule();
|
||||
$this->schedule();
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
static function getNextRunDate() {
|
||||
function getNextRunDate() {
|
||||
$wp = new WPFunctions();
|
||||
return Carbon::createFromTimestamp($wp->currentTime('timestamp'));
|
||||
}
|
||||
|
Reference in New Issue
Block a user