Fix undefined method

This commit is contained in:
Pavel Dohnal
2019-01-29 08:17:55 +01:00
parent 0e3f27add3
commit 9f533ad5c7
2 changed files with 2 additions and 1 deletions

View File

@ -67,7 +67,7 @@ class Scheduler {
} }
private function isTaskScheduled($newsletter_id) { private function isTaskScheduled($newsletter_id) {
$existing = ScheduledTask::table_alias('tasks') $existing = ScheduledTask::tableAlias('tasks')
->join(StatsNotification::$_table, 'tasks.id = notification.task_id', 'notification') ->join(StatsNotification::$_table, 'tasks.id = notification.task_id', 'notification')
->where('tasks.type', Worker::TASK_TYPE) ->where('tasks.type', Worker::TASK_TYPE)
->where('notification.newsletter_id', $newsletter_id) ->where('notification.newsletter_id', $newsletter_id)

View File

@ -62,6 +62,7 @@ if(!defined('ABSPATH')) exit;
* @method $this whereIn($column_name, $values) * @method $this whereIn($column_name, $values)
* @method static $this whereIn($column_name, $values) * @method static $this whereIn($column_name, $values)
* @method $this whereNotIn($column_name, $values) * @method $this whereNotIn($column_name, $values)
* @method static $this whereNotIn($column_name, $values)
* @method $this whereNull($column_name) * @method $this whereNull($column_name)
* @method static $this whereNull($column_name) * @method static $this whereNull($column_name)
* @method $this whereNotNull($column_name) * @method $this whereNotNull($column_name)