Fixes for migration mailable

This commit is contained in:
David Bomba 2021-05-22 15:37:00 +10:00
parent 1518aa1311
commit c458be00ae
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;