Refactor currency API

This commit is contained in:
James Cole
2023-10-28 16:47:11 +02:00
parent 0133a7c5db
commit 83d64262c8
11 changed files with 226 additions and 26 deletions

View File

@@ -109,6 +109,7 @@ class TransactionCurrency extends Model
$currencyId = (int)$value;
$currency = self::find($currencyId);
if (null !== $currency) {
$currency->refreshForUser(auth()->user());
return $currency;
}
}