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:
parent
b4d34f74cc
commit
fb0403b104
@ -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()));
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user