Skip to content

Commit 5d8c8bb

Browse files
committed
fix recognition of query format for empty queries in dictionary format
queries like {text: ""} did not get recognized correctly before and get converted to {text: {text: ""}}
1 parent 09ee46d commit 5d8c8bb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/client.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ p._pulseQueryQueue = function() {
172172

173173
p.query = function(config, values, callback) {
174174
//can take in strings or config objects
175-
config = (config.text || config.name) ? config : { text: config };
175+
config = (typeof(config) == 'string') ? { text: config } : config;
176176

177177
if(values) {
178178
if(typeof values === 'function') {

0 commit comments

Comments
 (0)