Skip to content

Commit

Permalink
fix(get): propagate next page size param #9029
Browse files Browse the repository at this point in the history
  • Loading branch information
jacksjm authored and fffonion committed Nov 1, 2022
1 parent f45576a commit ec9bff0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kong/api/endpoints.lua
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ local function get_collection_endpoint(schema, foreign_schema, foreign_field_nam
end

if args.size then
next_page_size = "&size=" .. args.size
next_page_size = "&size=" .. escape_uri(type(args.size) == "number" and args.size[1] or args.size)
end

local data, _, err_t, offset = page_collection(self, db, schema, method)
Expand Down

0 comments on commit ec9bff0

Please sign in to comment.