diff --git a/lib/client.js b/lib/client.js index 891e1812..975eac66 100644 --- a/lib/client.js +++ b/lib/client.js @@ -172,7 +172,7 @@ p._pulseQueryQueue = function() { p.query = function(config, values, callback) { //can take in strings or config objects - config = (config.text || config.name) ? config : { text: config }; + config = (typeof(config) == 'string') ? { text: config } : config; if(values) { if(typeof values === 'function') {