diff --git a/app/Console/Commands/CheckData.php b/app/Console/Commands/CheckData.php index fdb97a1b0768..57c8086af118 100644 --- a/app/Console/Commands/CheckData.php +++ b/app/Console/Commands/CheckData.php @@ -78,7 +78,7 @@ class CheckData extends Command $errorEmail = env('ERROR_EMAIL'); $this->info($this->log); - throw new Exception('Check data failed!!'); + if ($errorEmail) { Mail::raw($this->log, function ($message) use ($errorEmail) { $message->to($errorEmail) diff --git a/app/Http/routes.php b/app/Http/routes.php index e6478e3bbf55..a672a28ef374 100644 --- a/app/Http/routes.php +++ b/app/Http/routes.php @@ -113,7 +113,7 @@ if (Utils::isReseller()) { Route::post('/reseller_stats', 'AppController@stats'); } -if (Utils::isTravis() || true) { +if (Utils::isTravis()) { Route::get('/check_data', 'AppController@checkData'); }