Guest User

Untitled

a guest
Oct 18th, 2018
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. app.post('/bugs/working', function(req, res){
  2. db.bugs.find({_id:req.body.id}, function(err, doc){
  3.  
  4. doc.activate(req.body.comments);
  5.  
  6. db.bugs.update({_id:req.body.id}, doc, function(err, updatedDoc){
  7. db.bugs.find({status:'Working'}, function(err, docs){
  8. res.render('bugs-all.html', {
  9. title: "Working",
  10. model: { bugs : docs }});
  11. });
  12. });
  13. });
  14. });
Add Comment
Please, Sign In to add comment