Refactor methods that request the old currency preference.

This commit is contained in:
James Cole
2023-10-22 07:55:36 +02:00
parent 4cec0a9f97
commit 80237d8bc3
7 changed files with 46 additions and 62 deletions

View File

@@ -114,7 +114,7 @@ class NewUserController extends Controller
$this->createCashWalletAccount($currency, $language); // create cash wallet account
// store currency preference:
app('preferences')->set('currencyPreference', $currency->code);
$currencyRepository->makeDefault($currency);
// store frontpage preferences:
$accounts = $this->repository->getAccountsByType([AccountType::ASSET])->pluck('id')->toArray();