Fix copy paste error in API

This commit is contained in:
James Cole
2023-10-05 18:26:24 +02:00
parent 7d3ee9f0c4
commit a29d056a9b

View File

@@ -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();