Firefly III: a personal finances manager
PHP accountingbudgetbudgetingbudgetscash-flowcashflowcredit-carddockerexpensesfinancefinancesfinanciallinuxmoneypaycheckpersonal-financephpphp7
Limit the number of recurring transactions returned.
James Cole94a3bb04432c
diff --git a/app/Api/V1/Controllers/Models/TransactionCurrency/ListController.php b/app/Api/V1/Controllers/Models/TransactionCurrency/ListController.phpindex 7b094c96c7..04b44e4a38 100644--- a/app/Api/V1/Controllers/Models/TransactionCurrency/ListController.php+++ b/app/Api/V1/Controllers/Models/TransactionCurrency/ListController.php@@ -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(diff --git a/app/Repositories/Recurring/RecurringRepository.php b/app/Repositories/Recurring/RecurringRepository.phpindex afaaae6acd..b24aa9be82 100644--- a/app/Repositories/Recurring/RecurringRepository.php+++ b/app/Repositories/Recurring/RecurringRepository.php@@ -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{diff --git a/app/Support/Export/ExportDataGenerator.php b/app/Support/Export/ExportDataGenerator.phpindex b3ab0fa361..c50b9b28d2 100644--- a/app/Support/Export/ExportDataGenerator.php+++ b/app/Support/Export/ExportDataGenerator.php@@ -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) {