1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 13:12:50 +01:00

Minor fixes for hosted migrations

This commit is contained in:
David Bomba 2021-09-05 20:11:25 +10:00
parent b4d34f74cc
commit fb0403b104

View File

@ -114,9 +114,6 @@ class HostedMigrations extends Command
Import::dispatch($import_file, $user->companies()->first(), $user);
unlink(public_path("storage/migrations/$filename/migration.json"));
unlink($file->getRealPath());
} catch (NonExistingMigrationFile | ProcessingMigrationArchiveFailed | ResourceNotAvailableForMigration | MigrationValidatorFailed | ResourceDependencyMissing $e) {
\Mail::to($this->user)->send(new MigrationFailed($e, $e->getMessage()));