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) {
$existing = ScheduledTask::table_alias('tasks')
$existing = ScheduledTask::tableAlias('tasks')
->join(StatsNotification::$_table, 'tasks.id = notification.task_id', 'notification')
->where('tasks.type', Worker::TASK_TYPE)
->where('notification.newsletter_id', $newsletter_id)