Advertisement
jaegaern

Untitled

Oct 16th, 2017
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.   app.post('/api/account/edit/:field/:optional?', isAuthenticated, function (req, res) {
  2.     userUtils.getUserIdFromToken(token)
  3.     .then(userId => {
  4.         console.log('userId: ', userId)
  5.     })
  6.     utils.modifyUserFieldData(userId)
  7.     .then(out1 => {
  8.       console.log('out1: ', out1)
  9.       return res.status(200)
  10.     })
  11.     .catch(err => {
  12.       console.log('err: ', err)
  13.       return res.status(500)
  14.     })
  15.   })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement