From e4852a0169d435357e9b5922a0e7fb49c07984d4 Mon Sep 17 00:00:00 2001 From: Hillel Coren Date: Tue, 10 Jan 2017 11:51:50 +0200 Subject: [PATCH] Always email check data results --- app/Console/Commands/CheckData.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/Console/Commands/CheckData.php b/app/Console/Commands/CheckData.php index 4989262df65f..a39681a38456 100644 --- a/app/Console/Commands/CheckData.php +++ b/app/Console/Commands/CheckData.php @@ -72,6 +72,7 @@ class CheckData extends Command { $this->logMessage('Done'); $errorEmail = env('ERROR_EMAIL'); + $this->info($this->log); if ($errorEmail) { Mail::raw($this->log, function ($message) use ($errorEmail) { @@ -79,8 +80,6 @@ class CheckData extends Command { ->from(CONTACT_EMAIL) ->subject('Check-Data'); }); - } else { - $this->info($this->log); } }