always send _v

This commit is contained in:
Matteo Pagliazzi 2013-09-20 16:09:55 +02:00
parent 0c0e0834be
commit 2d02e49e06

View file

@ -715,7 +715,7 @@ api.batchUpdate = function(req, res, next) {
if(response.wasModified){
res.json(200, response);
}else{
res.json(204);
res.json(200, {_v: response._v});
}
return console.log("Reply sent");