title: Not being able to use promise
body: <p>I'm trying to use promises in node.</p>
  
  <p>But, the then part is not being executed.
  The first function returns a resolve() instance.
  How can I fix this?</p>
  
  <p>This is the code:</p>
  
  <pre><code>exports.refresh_access_token = function (environment_hash) {
  
      ...
  
      Model.update(values, {where: where}).then(function () {
          console.log('updated!');
          resolve("Success!");
  
      }).catch(function (err) {
          console.log('error on update');
      });
  
      ...
  
  }
  
  async.map(accounts, function (account) {
      module.exports.refresh_access_token(account.environment_hash).then(function () {
          console.log('async called back');
      });
  }
  </code></pre>