From a29d056a9bbc4af9c73120a5c759c8ebf59951c2 Mon Sep 17 00:00:00 2001 From: James Cole Date: Thu, 5 Oct 2023 18:26:24 +0200 Subject: [PATCH] Fix copy paste error in API --- app/Api/V2/Controllers/Transaction/List/AccountController.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/Api/V2/Controllers/Transaction/List/AccountController.php b/app/Api/V2/Controllers/Transaction/List/AccountController.php index 057b330f11..625675bb54 100644 --- a/app/Api/V2/Controllers/Transaction/List/AccountController.php +++ b/app/Api/V2/Controllers/Transaction/List/AccountController.php @@ -72,10 +72,12 @@ class AccountController extends Controller $start = $request->getStartDate(); $end = $request->getEndDate(); if (null !== $start) { + app('log')->debug(sprintf('Set start date to %s', $start->toIso8601String())); $collector->setStart($start); } if (null !== $end) { - $collector->setEnd($start); + app('log')->debug(sprintf('Set end date to %s', $start->toIso8601String())); + $collector->setEnd($end); } $paginator = $collector->getPaginatedGroups();