Skip to content

Commit

Permalink
I knew there had to be a bug in how i was loading the transactions...…
Browse files Browse the repository at this point in the history
… Now it is fixed
  • Loading branch information
austinkregel committed Jan 1, 2024
1 parent 19abb58 commit 41a9f09
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions routes/pages/spork.php
Original file line number Diff line number Diff line change
Expand Up @@ -258,12 +258,14 @@
]);
});
Route::get('/banking', function () {
$accounts = request()->user()->accounts()->with('credential')->get();
$accounts = request()->user()
->accounts()
->with('credential')->get();

return Inertia::render('Finance/Index', [
'title' => 'Banking ',
'accounts' => $accounts,
'transactions' => \App\Models\Finance\Transaction::whereIn('account_id', $accounts->pluck('id'))
'transactions' => \App\Models\Finance\Transaction::whereIn('account_id', $accounts->pluck('account_id'))
->with('tags')
->orderByDesc('date')
->paginate(),
Expand Down

0 comments on commit 41a9f09

Please sign in to comment.