diff --git a/tntsearch.php b/tntsearch.php index 252a98a..c8d395f 100644 --- a/tntsearch.php +++ b/tntsearch.php @@ -110,7 +110,7 @@ public function onSchedulerInitialized(Event $e): void $scheduler = $e['scheduler']; $at = $this->config->get('plugins.tntsearch.scheduled_index.at'); $logs = $this->config->get('plugins.tntsearch.scheduled_index.logs'); - $job = $scheduler->addCommand('bin/plugin tntsearch index', [], 'tntsearch-index'); + $job = $scheduler->addCommand('bin/plugin', ['tntsearch', 'index'], 'tntsearch-index'); $job->at($at); $job->output($logs); $job->backlink('/plugins/tntsearch');