From 5c26fc572ce64722985f1203baf9eb680f52ee18 Mon Sep 17 00:00:00 2001 From: = Date: Fri, 21 May 2021 17:24:35 +1000 Subject: [PATCH] fixes for migration --- app/Jobs/Util/StartMigration.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Jobs/Util/StartMigration.php b/app/Jobs/Util/StartMigration.php index e62b58d7f53e..4111cc967b8d 100644 --- a/app/Jobs/Util/StartMigration.php +++ b/app/Jobs/Util/StartMigration.php @@ -139,7 +139,7 @@ class StartMigration implements ShouldQueue $this->company->update_products = $update_product_flag; $this->company->save(); - Mail::to($this->user)->send(new MigrationFailed($e, $e->getMessage())); + Mail::to($this->user->email, $this->user->name())->send(new MigrationFailed($e, $e->getMessage())); if (app()->environment() !== 'production') { info($e->getMessage());