Skip to content
This repository has been archived by the owner on May 9, 2018. It is now read-only.

Commit

Permalink
Fixed the fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
sreuter committed Feb 28, 2013
1 parent 43b0a75 commit 2024dc5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/cradle/database/documents.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 2024dc5

Please sign in to comment.