mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-09-16 09:51:16 +00:00
API works for multi-account piggies, the rest throws an exception
This commit is contained in:
@@ -78,6 +78,11 @@ class PiggyBank extends Model
|
||||
throw new NotFoundHttpException();
|
||||
}
|
||||
|
||||
public function transactionCurrency(): BelongsTo
|
||||
{
|
||||
return $this->belongsTo(TransactionCurrency::class);
|
||||
}
|
||||
|
||||
public function account(): BelongsTo
|
||||
{
|
||||
return $this->belongsTo(Account::class);
|
||||
|
Reference in New Issue
Block a user