title: Using Sequelize with NodeJS and findByPk return pending
body: <p>Hello I try use Sequelize and I need return a Object in DB, this is a piece of my code;</p>
  
  <p>Simple like that:</p>
  
  <pre><code>const { User, Appointment } = require('../models')
  const moment = require('moment')
  const { Op } = require('sequelize')
  
  class MyAppointmentController {
    async index(req, res) {
      const { id } = req.session.user
  
      const appoitments = await Appointment.findAll({
        where: {
          providerId: id,
          date: {
            [Op.between]: [
              moment()
                .startOf('day')
                .format(),
              moment()
                .endOf('day')
                .format()
            ]
          }
        }
      })
  
      const available = appoitments.map(appoint =&gt; {
        const user = User.findByPk(appoint.userId).then(res =&gt; {
          console.log('Issue', res)
        })
  
        return {
          appoint,
          date: moment(appoint.date).format('HH:mm'),
          user: user.name,
          avatar: user.avatar
        }
      })
  
      return res.render('appointments/list', { available })
    }
  }
  module.exports = new MyAppointmentController()
  </code></pre>
  
  <p>I know this is a promise, but is impossible to get return...
  The console res is print property </p>
  
  <p>But <strong><em>user</em></strong> is always <strong><em>pending</em></strong> and if I try this</p>
  
  <pre><code>const user = User.findByPk(appoint.userId).then(res =&gt; {
              another_var = res
              return res
            })
  </code></pre>
  
  <p>console.log(enother_var) &lt;&lt; undefined</p>
  
  <p>Why does this happen? And How I can resolve this?</p>