Skip to content

Commit

Permalink
Merge pull request #6 from ensi-platform/remove_total_from_cursor
Browse files Browse the repository at this point in the history
remove total from cursor response.
  • Loading branch information
MsNatali authored Oct 16, 2023
2 parents 088c866 + 5ca8f6a commit 96e4c5b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/PaginationFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public function makeRequestOffset(array $extra = []): array
public function makeResponseCursor(string $className, array $extra = [])
{
$arr = $this
->only(['type', 'limit', 'total', 'cursor', 'next_cursor', 'previous_cursor'])
->only(['type', 'limit', 'cursor', 'next_cursor', 'previous_cursor'])
->make(array_merge($extra, [
'type' => config('laravel-test-factories.pagination.cursor'),
]));
Expand Down

0 comments on commit 96e4c5b

Please sign in to comment.