Skip to content

Commit

Permalink
Fix up changes format
Browse files Browse the repository at this point in the history
  • Loading branch information
daleharvey committed Aug 5, 2015
1 parent c922b4c commit 617bf13
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions lib/routes/db.js
Original file line number Diff line number Diff line change
Expand Up @@ -175,11 +175,11 @@ module.exports = function(app, PouchDB) {
});
}
} else { // straight shot, not continuous
req.query.complete = function (err, response) {
if (err) return utils.sendError(res, err);
res.status(200).send(response);
};
req.db.changes(req.query);
req.db.changes(req.query).then(function (response) {
utils.sendJSON(res, 200, response);
}).catch(function (err) {
utils.sendError(res, err);
});
}
}

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "pouchdb-express-router",
"version": "0.0.6",
"version": "0.0.7",
"description": "Provide minimal routing and functionality to provide a PouchDB server that replicates",
"main": "index.js",
"dependencies": {
Expand Down

0 comments on commit 617bf13

Please sign in to comment.