mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Multi-db support
This commit is contained in:
parent
ba90b3bcea
commit
eae2fca3a5
@ -73,14 +73,16 @@ class InitLookup extends Command
|
|||||||
|
|
||||||
$this->info($this->log);
|
$this->info($this->log);
|
||||||
|
|
||||||
if ($this->option('validate') && $errorEmail) {
|
if ($this->option('validate')) {
|
||||||
Mail::raw($this->log, function ($message) use ($errorEmail, $database) {
|
if ($errorEmail = env('ERROR_EMAIL')) {
|
||||||
$message->to($errorEmail)
|
Mail::raw($this->log, function ($message) use ($errorEmail, $database) {
|
||||||
->from(CONTACT_EMAIL)
|
$message->to($errorEmail)
|
||||||
->subject("Check-Lookups [{$database}]: " . strtoupper($this->isValid ? RESULT_SUCCESS : RESULT_FAILURE));
|
->from(CONTACT_EMAIL)
|
||||||
});
|
->subject("Check-Lookups [{$database}]: " . strtoupper($this->isValid ? RESULT_SUCCESS : RESULT_FAILURE));
|
||||||
} elseif (! $this->isValid) {
|
});
|
||||||
throw new Exception('Check data failed!!');
|
} elseif (! $this->isValid) {
|
||||||
|
throw new Exception('Check lookups failed!!');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user