diff --git a/lib/cradle/database/documents.js b/lib/cradle/database/documents.js index be8bcc6..cb9af62 100644 --- a/lib/cradle/database/documents.js +++ b/lib/cradle/database/documents.js @@ -132,7 +132,9 @@ Database.prototype._save = function (id, rev, doc, callback) { // Attempt to create a new document. If it fails, // because an existing document with that _id exists (409), // don't try to do anything funny in the dark. - callback(e, res); + this.put(id, document, function (e, res) { + callback(e, res); + }); } // POST a single document, without an id (Create) } else {