Skip to content

Commit 0507f11

Browse files
committed
fix params
1 parent 192d449 commit 0507f11

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

lib/connectionConfig.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -615,7 +615,7 @@ ConnectionConfig.prototype.documentURL = function(params){
615615
}
616616

617617
ConnectionConfig.prototype.queryParameter = function(params){
618-
if(params && typeof params!=='object')return ''
618+
if(!params || typeof params!=='object')return ''
619619
let queryString = Object.keys(params).map((key) => {
620620
return key + '=' + encodeURIComponent(params[key])
621621
}).join('&');

lib/woqlClient.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1040,8 +1040,6 @@ WOQLClient.prototype.addDocument = function(json, params, dbId, message="add a n
10401040
* "query": { "age": 42 },
10411041
* }
10421042
* client.queryDocument(query,{"as_list":true})
1043-
*
1044-
*
10451043
*/
10461044

10471045
WOQLClient.prototype.queryDocument = function(query, params, dbId, branch){

0 commit comments

Comments
 (0)