how to write a sequelize update request code example
Example: sequelize update sql
const Tokens = db.define('tokens', {
token: {
type: sequelize.STRING
}
});
// Update tokens table where id
Tokens.update(
{ token: 'new token' },
{ where: {id: idVar} }
).then(tokens => {
console.log(tokens);
}).catch(err => console.log('error: ' + err));