1
0
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:
David Bomba 2021-05-22 15:37:19 +10:00 committed by GitHub
commit 51999bd8a3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -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());

View File

@ -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;