Skip to content

Instantly share code, notes, and snippets.

@vkareh
Created February 28, 2012 16:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vkareh/1933485 to your computer and use it in GitHub Desktop.
Save vkareh/1933485 to your computer and use it in GitHub Desktop.
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