title: Sequelize upsert boolean not working
body: <p>I am trying to use the upsert method in Sequelize, but I am getting inconsistent boolean returns.  It seems like the <em>updatedData</em> argument is always false, despite the fact that the data updates in the DB.  Here is my code:</p>
  
  <pre><code>router.post('/deploy', function (req, res) {
      var data;
      data = req.body;
  
      //Update data in mySQL
      db.site.upsert({
          name: data.name,
          templateId: data.templateId,
          siteName: data.siteName,
          domain: utils.formatDomain(data.domain),
          mainEmail: data.mainEmail,
          mainPhone: utils.removePhoneNumberFormat(data.mainPhone),
          mainExt: ''
      }, {
          where: {
              domain: data.domain
          },
      }).then(function (updatedData) {
          console.log(updatedData);
          if (updatedData) {
              console.log('New data written successfully');
              return res.status(200).send('New data written');
          } else {
              console.log('Data did not change from the origin');
              return res.status(200).send('Nothing changed');
          }
      }).catch(function (e) {
          console.log('Deploy Controller Error: s% ', e);
          return res.status(500).end('unexpected_error');
      });
  });
  </code></pre>
  
  <p>I am sure I am doing something wrong here, but any help or feedback would be much appreciated.  Thanks and I hope you are having a nice day. :)</p>