Instance update does not preserve previous dataValues
See original GitHub issueinstance update calls save() a the end, then in instance.js:
.then(function(result) {
options.fields.forEach(function (field) {
result._previousDataValues[field] = result.dataValues[field];
self.changed(field, false);
});
self.isNewRecord = false;
return result;
})
result._previousDataValues is overwritten with new values
Issue Analytics
- State:
- Created 7 years ago
- Comments:7 (4 by maintainers)
Top Results From Across the Web
Get only dataValues from Sequelize ORM - node.js
The only data I want is inside 'dataValues'. Of course, I can use object.dataValues. But, is there any other good solutions? I'm using...
Read more >How to retain shape data values upon updating document masters?
I have no expectations that values that have been changed in the local shape instance to be changed (blue text in shape sheet),...
Read more >Updating Charts | Chart.js
It's pretty common to want to update charts after they've been created. When the chart data or options are changed, Chart.js will animate...
Read more >6.8 - Formatting Data Values | STAT 480
Let's look at an example of the use of the FORMAT statement in the PRINT procedure. Example 6.20 Section. The following SAS program...
Read more >Updating Data on the Server - Oracle Help Center
Once you retrieve data into your spreadsheet, you can change values, enter formulas, ... Essbase automatically unlocks the previous data values.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
What About afterUpdate hook? There is a good point to do somethings related to new and old values.
PRs are always welcome 😃