mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-10 13:12:50 +01:00
Merge pull request #5789 from turbo124/v5-develop
Fixes for migration mailable
This commit is contained in:
commit
51999bd8a3
@ -139,7 +139,7 @@ class StartMigration implements ShouldQueue
|
||||
$this->company->update_products = $update_product_flag;
|
||||
$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') {
|
||||
info($e->getMessage());
|
||||
|
@ -19,7 +19,7 @@ class MigrationFailed extends Mailable
|
||||
* @param $content
|
||||
* @param $exception
|
||||
*/
|
||||
public function __construct($exception, $content = null, $settings)
|
||||
public function __construct($exception, $settings, $content = null)
|
||||
{
|
||||
$this->exception = $exception;
|
||||
$this->content = $content;
|
||||
|
Loading…
Reference in New Issue
Block a user