This commit is contained in:
Dobie Wollert
2013-09-30 01:47:14 -04:00
parent 790c1ca597
commit cfcafd74ac
7 changed files with 82 additions and 10 deletions

View File

@ -134,6 +134,8 @@ module.exports = function(calendar) {
cmd.$inc[key] = 1;
console.log(cmd);
Client.findByIdAndUpdate(req.body.client, cmd, function(err, ignored) { callback(err, result) });
} else {
callback(null, result);
}
},
],