Created
February 28, 2012 16:31
-
-
Save vkareh/1933485 to your computer and use it in GitHub Desktop.
patch for cradle
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/lib/cradle.js b/lib/cradle.js | |
index 7700ff6..db5e2a5 100644 | |
--- a/lib/cradle.js | |
+++ b/lib/cradle.js | |
@@ -509,7 +509,9 @@ cradle.Connection.prototype.database = function (name) { | |
} | |
if (options && options.keys) { | |
- this.query('POST', path, {}, options, args.callback); | |
+ var keys = options.keys; | |
+ delete options.keys; | |
+ this.query('POST', path, options, {keys:keys}, args.callback); | |
} else { | |
this.query('GET', path, options, args.callback); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment