Sequlize update () returned data problem?

my requirement is to return the updated data after updating the data

but sequlize only returns an array in update (), indicating the number of updates.
has to check and return it once after the update. Is there a way for sequlize to return updated data directly after update ()?

Jan.16,2022

you can first use findOne () to find the data to be updated, and then call the model.save () method to update. In this way, you can get the data before and after the update. If you want to ensure data consistency, add a transaction . You don't need to use the update () method.

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b38062-2ae24.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b38062-2ae24.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?