Update only one row in sequelize
<p>I am using <code>Sequelize</code> as ORM along with <code>express.js</code> Below is my minimalistic table structure. </p>

<pre><code>Id  status          phone

1     0             09620701828
2     0             09620701828
</code></pre>

<p>Now when an api request is to make on an end-point then I have to update status for last id belonging to a particular phone that I am getting from request. Raw MySql query for which will be <code>UPDATE table SET status=1 where phone='09620701828' ORDER BY id DESC LIMIT 1;</code></p>

<p>How I can achieve the same using Sequelize update method. Below is what I have tried </p>

<pre><code>models.customerLeadFeedback.update(
    {status: 1},
    { 
        where: {phone : '09620701828'},
        order: [['id', 'DESC']],
        limit : 1

    }).then(function () {
        res.sendStatus(200);
    })`
</code></pre>

<p>But order by clause is not working for above and updating status for id 1. Can anyone help me with this without using raw query in <code>sequelize</code>.</p>