Skip to content

Commit

Permalink
fix autocomplete can not parse boolean
Browse files Browse the repository at this point in the history
  • Loading branch information
iBinh committed Aug 3, 2021
1 parent 78a2322 commit 768ea74
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@goongmaps/goong-sdk",
"version": "1.0.6",
"version": "1.0.7",
"description": "A Javascript SDK working with Goong REST APIs",
"main": "index.js",
"files": [
Expand Down
5 changes: 3 additions & 2 deletions services/autocomplete.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

var v = require('./service-helpers/validator');
var createServiceFactory = require('./service-helpers/create-service-factory');
var stringifyBooleans = require('./service-helpers/stringify-booleans');

/**
* Autocomplete API service.
Expand Down Expand Up @@ -57,11 +58,11 @@ Autocomplete.search = function(config) {
sessiontoken: v.string,
more_compound: v.boolean
})(config);

var query = stringifyBooleans(config);
return this.client.createRequest({
method: 'GET',
path: '/place/autocomplete',
query: config
query: query
});
};

Expand Down

0 comments on commit 768ea74

Please # to comment.