title: sequelize update with where and date
body: <p>I try to update a column from that I have created seconds ago:</p>
  <pre><code>var currentdate = new Date();
  currentdate.setDate(currentdate.getDate() - 1);
  
  create:
  await dayins.create({Kennung: inId, ins: parseFloat(inIns), added_at: currentdate}); 
  
  
  update:
  tryout1:
  await dayins.update({ outs: parseFloat(inOuts) },{ where: {Kennung: inId, added_at: currentdate } }); 
  tryout2:
  await dayins.update({ outs: parseFloat(inOuts) },{ where: {Kennung: inId, added_at: {$eq: currentdate} } }); 
  </code></pre>
  <p>Create will create a entry with the date one day back. Everything is ok. But after some lines I need to update some values. And here I try to use the not changed currentdate variable but the outs column will stay null, so no updates occour.</p>
  <p>The model is:</p>
  <pre><code>const { Sequelize, DataTypes } = require(&quot;sequelize&quot;);
  const sequelize = require(&quot;../config/mysql&quot;);
  
  const moddayins = sequelize.define(
    &quot;bot_ins1&quot;,
    {
      Kennung: {
        type: Sequelize.STRING,
        allowNull: false,
      },    
      ins: {
        type: Sequelize.FLOAT,
      },   
      outs: {
        type: Sequelize.FLOAT,
      },    
      added_at: {
        type: Sequelize.DATE,
        defaultValue: Sequelize.fn('NOW'),
      },      
    },
    {
      timestamps: false,
      paranoid: true,
      underscored: true,
      freezeTableName: true,
    }
  );
  
  module.exports = moddayins;
  </code></pre>
  <p>Anybody can help me out why update is not working?</p>