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:
parent
f8b99a1cea
commit
b546d54c2e
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user