mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-06-23 20:00:33 -04:00
Always display check data ouput
This commit is contained in:
parent
9b13321a7f
commit
9632b437ce
@ -74,16 +74,14 @@ class CheckData extends Command {
|
||||
$this->logMessage('Done');
|
||||
$errorEmail = env('ERROR_EMAIL');
|
||||
|
||||
if ( ! $this->isValid) {
|
||||
if ($errorEmail) {
|
||||
$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');
|
||||
});
|
||||
} else {
|
||||
$this->info($this->log);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user