Skip to content

Commit

Permalink
* fix: test was broken
Browse files Browse the repository at this point in the history
* updated contributors
* release 0.5.3
  • Loading branch information
florianholzapfel committed Nov 18, 2013
1 parent 79c1879 commit bfc3c6f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ defaults(options)
* Matt Roman (https://github.com/romanmt)
* Fetrarijaona R. (https://github.com/fetrarij)
* Jan Paul Erkelens (https://github.com/jperkelens)
* cherbst (https://github.com/cherbst)
* Christoph Herbst (https://github.com/cherbst)

## Formalia

Expand Down
4 changes: 2 additions & 2 deletions lib/express-restify-mongoose.js
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ var restify = function (app, model, opts) {
}
}

if ( options.findOneAndUpdate ) {
if (options.findOneAndUpdate) {
model.findOneAndUpdate({ _id: req.params.id }, req.body, {},
function (err, item) {
if (err) {
Expand All @@ -292,7 +292,7 @@ var restify = function (app, model, opts) {
for (var key in req.body) {
doc[key] = req.body[key];
}
doc.save(function(err, item){
doc.save(function (err, item) {
if (err) {
res.send(404);
} else {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "express-restify-mongoose",
"description": "Easily restify mongoose database",
"version": "0.5.2",
"version": "0.5.3",
"author": {
"name": "Florian Holzapfel",
"email": "[email protected]"
Expand Down

0 comments on commit bfc3c6f

Please sign in to comment.