Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- app.post('/bugs/working', function(req, res){
- db.bugs.find({_id:req.body.id}, function(err, doc){
- doc.activate(req.body.comments);
- db.bugs.update({_id:req.body.id}, doc, function(err, updatedDoc){
- db.bugs.find({status:'Working'}, function(err, docs){
- res.render('bugs-all.html', {
- title: "Working",
- model: { bugs : docs }});
- });
- });
- });
- });
Add Comment
Please, Sign In to add comment