Permalink
Browse files

Merge pull request #42 from pimvdb/master

Use `keys` in query
  • Loading branch information...
2 parents 56a1a30 + db22324 commit 8ef1a4477bd4ad098ac7face4b017513f89a645e Alexey committed Sep 5, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/couchdb.js
View
@@ -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]);

0 comments on commit 8ef1a44

Please sign in to comment.