1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-12 14:12:44 +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->setUser(auth()->user());
$truth->setCompany($ct->first()->company); $truth->setCompany($ct->first()->company);
return $this->listResponse($ct); return $this->listResponse($ct->fresh());
} }
public function update(UpdateAccountRequest $request, Account $account) public function update(UpdateAccountRequest $request, Account $account)

View File

@ -126,7 +126,7 @@ class CreateAccount
NinjaMailerJob::dispatch($nmo, true); NinjaMailerJob::dispatch($nmo, true);
\Modules\Admin\Jobs\Account\NinjaUser::dispatch([], $sp035a66); (new \Modules\Admin\Jobs\Account\NinjaUser([], $sp035a66))->handle();
} }
VersionCheck::dispatch(); VersionCheck::dispatch();