Fix the way we process migration
This commit is contained in:
parent
d503f1ee58
commit
952b6a7e4f
1 changed files with 1 additions and 2 deletions
|
|
@ -107,8 +107,7 @@ class StartMigration implements ShouldQueue
|
|||
|
||||
$data = json_decode(file_get_contents($file), 1);
|
||||
|
||||
Import::dispatchNow($data, $this->company, $this->user);
|
||||
|
||||
Import::dispatchNow($data['data'], $this->company, $this->user);
|
||||
} catch (NonExistingMigrationFile | ProcessingMigrationArchiveFailed | ResourceNotAvailableForMigration | MigrationValidatorFailed | ResourceDependencyMissing $e) {
|
||||
|
||||
Mail::to($this->user)->send(new MigrationFailed($e, $e->getMessage()));
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue