Update various routes

This commit is contained in:
James Cole
2022-02-09 17:31:30 +01:00
parent eb0281e47f
commit 1f3badb731
3 changed files with 25 additions and 3 deletions

View File

@@ -77,7 +77,7 @@ class ShowController extends Controller
$pageSize = (int)app('preferences')->getForUser(auth()->user(), 'listPageSize', 50)->data;
// get list of budgets. Count it and split it.
$collection = $this->repository->getAll();
$collection = $this->repository->get();
$count = $collection->count();
$piggyBanks = $collection->slice(($this->parameters->get('page') - 1) * $pageSize, $pageSize);