diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 348be085a873..11b8a9de03d8 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -48,6 +48,11 @@ jobs: run: | sudo rm -rf bootstrap/cache/* sudo rm -rf node_modules + - name: Prune Git History + run: | + sudo git gc + sudo git gc --aggressive + sudo git prune - name: Build project # This would actually build your project, using zip for an example artifact run: | zip -r ./invoiceninja.zip .* -x "../*" diff --git a/app/Jobs/Util/Import.php b/app/Jobs/Util/Import.php index 08895dab6741..4d29271c360b 100644 --- a/app/Jobs/Util/Import.php +++ b/app/Jobs/Util/Import.php @@ -214,7 +214,7 @@ class Import implements ShouldQueue // if($check_data['status'] == 'errors') // throw new ProcessingMigrationArchiveFailed(implode("\n", $check_data)); - Mail::to($this->user) + Mail::to($this->user->email, $this->user->name()) ->send(new MigrationCompleted($this->company, implode("
",$check_data))); /*After a migration first some basic jobs to ensure the system is up to date*/