From 94791a6c33da94080719a72055ac9372f8ec24f0 Mon Sep 17 00:00:00 2001 From: Hillel Coren Date: Thu, 9 Mar 2017 17:52:58 +0200 Subject: [PATCH] Working on adding check-data to Travis --- app/Console/Commands/CheckData.php | 2 +- app/Http/routes.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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'); }