a guest Jan 24th, 2019 55 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. getController.getData = function(req,res, collection, pagerender) {
  2.   var id =;
  3.   collection.find({}, function(err, docs){
  4.     if(err) res.json(err);
  5.     else res.render(pagerender, {data:docs, ADusername: req.session.user_id, id:});
  6.     console.log(docs);
  7.   });
  8. };
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand