From db22324da5bd07bc7e4f42a6ef9cdc95834c79f6 Mon Sep 17 00:00:00 2001 From: pimvdb Date: Thu, 14 Jun 2012 00:09:27 +0200 Subject: [PATCH] Enable to convert to JSON --- lib/couchdb.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/couchdb.js b/lib/couchdb.js index 1c0cfbf..1c94fc0 100644 --- a/lib/couchdb.js +++ b/lib/couchdb.js @@ -77,7 +77,7 @@ exports.toJSON = function(data) { // Encode only key, startkey and endkey as JSON exports.toQuery = function(query) { for (var k in query) { - if (['key', 'startkey', 'endkey'].indexOf(k) != -1) { + if (['key', 'keys', 'startkey', 'endkey'].indexOf(k) != -1) { query[k] = JSON.stringify(query[k]); } else { query[k] = String(query[k]);