Fix unexpected EventDispatcher exception in cronjob
This commit is contained in:
committed by
Frédéric Guillot
parent
f084cfa7bd
commit
ac55e6ed04
@@ -47,6 +47,6 @@ class TaskTriggerCommand extends BaseCommand
|
||||
$event = new TaskListEvent(array('project_id' => $project_id));
|
||||
$event->setTasks($tasks);
|
||||
|
||||
$this->dispatcher->dispatch(TaskModel::EVENT_DAILY_CRONJOB, $event);
|
||||
$this->dispatcher->dispatch($event, TaskModel::EVENT_DAILY_CRONJOB);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user