1
0
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:
David Bomba 2023-03-13 17:31:30 +11:00
parent dfec0715ea
commit 8ea6044555
2 changed files with 2 additions and 2 deletions

View File

@ -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)

View File

@ -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();