1
0
mirror of https://github.com/BookStackApp/BookStack.git synced 2025-07-31 15:24:31 +03:00

Fixed incorrect API listing total when offset set

Fixes #2043
This commit is contained in:
Dan Brown
2020-04-25 16:38:11 +01:00
parent 0883b0533b
commit 79a949836b
2 changed files with 17 additions and 1 deletions

View File

@ -36,8 +36,8 @@ class ListingResponseBuilder
*/
public function toResponse()
{
$data = $this->fetchData();
$total = $this->query->count();
$data = $this->fetchData();
return response()->json([
'data' => $data,