Skip to content

Commit

Permalink
fix: Update pagination docs and conditions #238
Browse files Browse the repository at this point in the history
  • Loading branch information
jdalrymple committed Dec 11, 2018
1 parent 0ba89f8 commit f0202d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/infrastructure/RequestHelper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ class RequestHelper {
return [...body, ...more];
}

return showPagination ? { data: body, pagination } : body;
return (query.page || maxPages) && showPagination ? { data: body, pagination } : body;
}

static async stream(service, endpoint: string, options: BaseRequestOptions = ({} = {})) {
Expand Down

0 comments on commit f0202d3

Please sign in to comment.