Skip to content

Commit e83afc6

Browse files
kingjia90swina
andauthored
Fix: RESTApi Activity paginator total count (#375)
Co-authored-by: swina <[email protected]>
1 parent 1c0ff33 commit e83afc6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/RESTApi/ActivitiesHandler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ public function listRecords(Request $request)
5656

5757
$result = [
5858
'page' => $page,
59-
'totalPages' => $paginator->getPages()->pageCount,
59+
'totalPages' => $paginator->getPaginationData()['pageCount'],
6060
'timestamp' => $timestamp,
6161
'data' => [],
6262
];

0 commit comments

Comments
 (0)