1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 21:22:58 +01:00

Merge pull request #5799 from turbo124/v5-develop

Fixes for multidb UserController
This commit is contained in:
David Bomba 2021-05-24 11:30:45 +10:00 committed by GitHub
commit 76d8ec99c9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -216,7 +216,8 @@ class UserController extends BaseController
event(new UserWasCreated($user, auth()->user(), $company, Ninja::eventVars(auth()->user() ? auth()->user()->id : null)));
$user->setCompany($company);
$user->company_id = $company->id;
return $this->itemResponse($user);
}