performance tuning on timesheets (#874)

This commit is contained in:
Kevin Papst
2019-06-20 16:05:31 +02:00
committed by GitHub
parent bb8572a364
commit 9fbbaf9b88
11 changed files with 290 additions and 50 deletions

View File

@@ -198,7 +198,7 @@ class TimesheetController extends BaseApiController
}
/** @var Pagerfanta $data */
$data = $this->repository->findByQuery($query);
$data = $this->repository->getPagerfantaForQuery($query);
$data = (array) $data->getCurrentPageResults();
$view = new View($data, 200);