Skip to content

Instantly share code, notes, and snippets.

@vkareh
Created Feb 28, 2012
Embed
What would you like to do?
patch for cradle
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