mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-06-09 08:04:36 -04:00
Fixes for migration mailable
This commit is contained in:
parent
1518aa1311
commit
c458be00ae
@ -139,7 +139,7 @@ class StartMigration implements ShouldQueue
|
|||||||
$this->company->update_products = $update_product_flag;
|
$this->company->update_products = $update_product_flag;
|
||||||
$this->company->save();
|
$this->company->save();
|
||||||
|
|
||||||
Mail::to($this->user->email, $this->user->name())->send(new MigrationFailed($e, $e->getMessage(), $this->company->settings));
|
Mail::to($this->user->email, $this->user->name())->send(new MigrationFailed($e, $this->company->settings, $e->getMessage()));
|
||||||
|
|
||||||
if (app()->environment() !== 'production') {
|
if (app()->environment() !== 'production') {
|
||||||
info($e->getMessage());
|
info($e->getMessage());
|
||||||
|
@ -19,7 +19,7 @@ class MigrationFailed extends Mailable
|
|||||||
* @param $content
|
* @param $content
|
||||||
* @param $exception
|
* @param $exception
|
||||||
*/
|
*/
|
||||||
public function __construct($exception, $content = null, $settings)
|
public function __construct($exception, $settings, $content = null)
|
||||||
{
|
{
|
||||||
$this->exception = $exception;
|
$this->exception = $exception;
|
||||||
$this->content = $content;
|
$this->content = $content;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user