Guest User

Untitled

a guest
Feb 25th, 2018
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.16 KB | None | 0 0
  1. Вместо:
  2. User.findOne().then(user => {
  3. console.log(user.get('firstName'));
  4. });
  5.  
  6. Это:
  7. user = await User.findOne()
  8.  
  9. console.log(user.get('firstName'));
Add Comment
Please, Sign In to add comment