mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-10 21:22:58 +01:00
start database migration with correct key
This commit is contained in:
parent
a2c244a666
commit
c434d6313c
@ -107,7 +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…
Reference in New Issue
Block a user