mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-09-19 02:45:58 +00:00
id was ambiguous.
This commit is contained in:
@@ -131,7 +131,7 @@ class AccountRepository implements AccountRepositoryInterface
|
|||||||
$query = Auth::user()->accounts()->accountTypeIn(['Default account', 'Asset account']);
|
$query = Auth::user()->accounts()->accountTypeIn(['Default account', 'Asset account']);
|
||||||
|
|
||||||
if (count($preference->data) > 0) {
|
if (count($preference->data) > 0) {
|
||||||
$query->whereIn('id', $preference->data);
|
$query->whereIn('accounts.id', $preference->data);
|
||||||
}
|
}
|
||||||
|
|
||||||
$result = $query->get(['accounts.*']);
|
$result = $query->get(['accounts.*']);
|
||||||
|
Reference in New Issue
Block a user