Skip to content

Commit

Permalink
fix: #227 Fixing array syntax thanks to Lukas Eipert (https://github.…
Browse files Browse the repository at this point in the history
  • Loading branch information
jdalrymple committed May 25, 2019
1 parent cea5a2b commit aa6acb1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/infrastructure/KyRequester.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ function defaultRequest(
{
timeout: 30000,
headers,
searchParams: stringify(decamelizeKeys(query || {}), { arrayFormat: 'bracket' }),
searchParams: stringify(decamelizeKeys(query), { arrayFormat: 'bracket' }),
prefixUrl: service.url,
json: typeof body === 'object' ? decamelizeKeys(body, skipAllCaps) : body,
rejectUnauthorized: service.rejectUnauthorized,
Expand Down
2 changes: 1 addition & 1 deletion src/infrastructure/RequestHelper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export async function get(
): Promise<GetResponse> {
const { showPagination, maxPages, sudo, ...query } = options;
const response = await service.requester.get(service, endpoint, {
query,
query: query || {},
sudo,
});
const { headers } = response;
Expand Down

0 comments on commit aa6acb1

Please sign in to comment.