SHARE
TWEET

Untitled

a guest Jun 25th, 2019 49 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Student.findOne({
  2.         where:{id:studentId},
  3.         include:[Campus]
  4.     }).then((student) => {
  5.         console.log(student)
  6.         student.update({
  7.             campusId:campusId
  8.         })
  9.         res.status(200).json({status:"success"});
  10.  
  11.     }).catch((err)=>{
  12.         console.log(err)
  13.         res.status(400).json({status:"fuck u"});
  14.     })
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
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top