Skip to content

Commit

Permalink
Some small improvements to the bridge js and more validation tests + …
Browse files Browse the repository at this point in the history
…fixes.
  • Loading branch information
marten-de-vries committed May 15, 2014
1 parent 8ada691 commit 7869370
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,12 @@ var couchdb_objects = require("couchdb-objects");
var nodify = require("promise-nodify");

function addOldDoc(db, id, args) {
return db.get(id).then(function (err) {
args.push(null);
return args;
}, function (doc) {
return db.get(id).then(function (doc) {
args.push(doc);
return args;
}, function (err) {
args.push(null);
return args;
});
}

Expand Down Expand Up @@ -135,7 +135,7 @@ function parseValidationFunctions(resp) {
}

function processArgs(db, callback, options) {
if (!callback) {
if (typeof options === "function") {
callback = options;
options = {};
}
Expand Down

0 comments on commit 7869370

Please sign in to comment.