From 7b16f1ab09a276be40d050605e65eed786de0d98 Mon Sep 17 00:00:00 2001 From: Henry Whitaker Date: Sat, 10 Apr 2021 22:08:07 +0100 Subject: [PATCH] Remove influx console command --- app/Console/Commands/TestInfluxConnection.php | 62 ------------------- 1 file changed, 62 deletions(-) delete mode 100644 app/Console/Commands/TestInfluxConnection.php diff --git a/app/Console/Commands/TestInfluxConnection.php b/app/Console/Commands/TestInfluxConnection.php deleted file mode 100644 index ae789eeb..00000000 --- a/app/Console/Commands/TestInfluxConnection.php +++ /dev/null @@ -1,62 +0,0 @@ -enabled = (bool) SettingsHelper::get('influx_db_enabled')->value; - } - - /** - * Execute the console command. - * - * @return int - */ - public function handle() - { - if (!$this->enabled) { - $this->warn('InfluxDB is not enabled'); - exit; - } - - try { - InfluxDB::connect(); - $this->info('Connected successfully'); - } catch (InfluxDBConnectionErrorException $e) { - $this->error('Couldn\'t connect'); - return 1; - } - - return 0; - } -}