title: Error: Missing where attribute in the options parameter passed to findOrCreate.
body: <p>I'm trying to use sequelize findOrCreate function, but I'm getting this error:</p>
  
  <pre><code>Error: Missing where attribute in the options parameter passed to findOrCreate. 
  </code></pre>
  
  <p>This is my code:</p>
  
  <pre><code>var values = { slack_id: profile.id, name: profile.user };
  var selector = { where: { slack_id: profile.id } };
  User.findOrCreate(values, selector)
              .then(function() {
                  return done(err, user);
              });
  </code></pre>