Limit the number of recurring transactions returned.

This commit is contained in:
James Cole 2025-02-01 15:39:34 +01:00
parent 8dcc36880e
commit 94a3bb0443
No known key found for this signature in database
GPG Key ID: B49A324B7EAD6D80
3 changed files with 3 additions and 3 deletions

View File

@ -236,7 +236,7 @@ class ListController extends Controller
// get list of budgets. Count it and split it.
/** @var RecurringRepositoryInterface $recurringRepos */
$recurringRepos = app(RecurringRepositoryInterface::class);
$unfiltered = $recurringRepos->getAll();
$unfiltered = $recurringRepos->get();
// filter selection
$collection = $unfiltered->filter(

View File

@ -93,7 +93,7 @@ class RecurringRepository implements RecurringRepositoryInterface
}
/**
* Returns all of the user's recurring transactions.
* Returns all the user's recurring transactions.
*/
public function get(): Collection
{

View File

@ -513,7 +513,7 @@ class ExportDataGenerator
'currency_code', 'foreign_currency_code', 'source_name', 'source_type', 'destination_name', 'destination_type', 'amount', 'foreign_amount', 'category', 'budget', 'piggy_bank', 'tags',
];
$records = [];
$recurrences = $recurringRepos->getAll();
$recurrences = $recurringRepos->get();
/** @var Recurrence $recurrence */
foreach ($recurrences as $recurrence) {