Always display check data ouput
This commit is contained in:
parent
9b13321a7f
commit
9632b437ce
1 changed files with 8 additions and 10 deletions
|
|
@ -74,16 +74,14 @@ class CheckData extends Command {
|
|||
$this->logMessage('Done');
|
||||
$errorEmail = env('ERROR_EMAIL');
|
||||
|
||||
if ( ! $this->isValid) {
|
||||
if ($errorEmail) {
|
||||
Mail::raw($this->log, function ($message) use ($errorEmail) {
|
||||
$message->to($errorEmail)
|
||||
->from(CONTACT_EMAIL)
|
||||
->subject('Check-Data');
|
||||
});
|
||||
} else {
|
||||
$this->info($this->log);
|
||||
}
|
||||
$this->info($this->log);
|
||||
|
||||
if ( ! $this->isValid && $errorEmail) {
|
||||
Mail::raw($this->log, function ($message) use ($errorEmail) {
|
||||
$message->to($errorEmail)
|
||||
->from(CONTACT_EMAIL)
|
||||
->subject('Check-Data');
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue