Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Student.findOne({
- where:{id:studentId},
- include:[Campus]
- }).then((student) => {
- console.log(student)
- student.update({
- campusId:campusId
- })
- res.status(200).json({status:"success"});
- }).catch((err)=>{
- console.log(err)
- res.status(400).json({status:"fuck u"});
- })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement