mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-02-16 18:25:00 -06:00
Fix refactor for field.
This commit is contained in:
parent
80237d8bc3
commit
c3398d4d51
@ -108,8 +108,9 @@ class Amount
|
||||
*/
|
||||
public function getCurrencies(): Collection
|
||||
{
|
||||
throw new FireflyException(sprintf('Method "%s" needs a refactor', __METHOD__));
|
||||
return TransactionCurrency::where('enabled', true)->orderBy('code', 'ASC')->get();
|
||||
/** @var User $user */
|
||||
$user = auth()->user();
|
||||
return $user->currencies()->orderBy('code','ASC')->get();
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user