mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-08 20:22:42 +01:00
move NinjaUser to sync when creating accounts
This commit is contained in:
parent
dfec0715ea
commit
8ea6044555
@ -154,7 +154,7 @@ class AccountController extends BaseController
|
||||
$truth->setUser(auth()->user());
|
||||
$truth->setCompany($ct->first()->company);
|
||||
|
||||
return $this->listResponse($ct);
|
||||
return $this->listResponse($ct->fresh());
|
||||
}
|
||||
|
||||
public function update(UpdateAccountRequest $request, Account $account)
|
||||
|
@ -126,7 +126,7 @@ class CreateAccount
|
||||
|
||||
NinjaMailerJob::dispatch($nmo, true);
|
||||
|
||||
\Modules\Admin\Jobs\Account\NinjaUser::dispatch([], $sp035a66);
|
||||
(new \Modules\Admin\Jobs\Account\NinjaUser([], $sp035a66))->handle();
|
||||
}
|
||||
|
||||
VersionCheck::dispatch();
|
||||
|
Loading…
Reference in New Issue
Block a user