1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-05 18:52:44 +01:00

Fix for migrations

This commit is contained in:
David Bomba 2021-02-04 11:07:21 +11:00
parent f8b99a1cea
commit b546d54c2e

View File

@ -265,13 +265,14 @@ class Import implements ShouldQueue
$validator = Validator::make($data, $rules);
if ($validator->fails()) {
if ($validator->fails())
throw new MigrationValidatorFailed(json_encode($validator->errors()));
}
if (isset($data['account_id'])) {
if (isset($data['account_id']))
unset($data['account_id']);
}
if(isset($data['version']))
unset($data['version']);
if (isset($data['referral_code'])) {
$account = $this->company->account;