mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-02-25 18:45:27 -06:00
Fix query. [skip ci]
This commit is contained in:
parent
d2c8475504
commit
c5fb734e42
@ -207,6 +207,12 @@ class AccountRepository implements AccountRepositoryInterface
|
||||
->orderBy('transaction_journals.date', 'DESC')
|
||||
->orderBy('transaction_journals.order', 'ASC')
|
||||
->orderBy('transaction_journals.id', 'DESC')
|
||||
->where(
|
||||
function (Builder $q) use ($account) {
|
||||
$q->where('destination.account_id', $account->id);
|
||||
$q->orWhere('source.account_id', $account->id);
|
||||
}
|
||||
)
|
||||
->take(10)
|
||||
->get(TransactionJournal::QUERYFIELDS);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user