dchester / epilogue

Create flexible REST endpoints and controllers from Sequelize models in your Express app
846 stars 116 forks source link

How to see changed fields #176

Open semaja2 opened 8 years ago

semaja2 commented 8 years ago

I am just wondering is it possible to easily see what values were changed in an update?

Ideally I am hoping Epilogue has an inbuilt feature for this to help audit changes made to records

mbroadst commented 8 years ago

there is internal tracking done by sequelize, which we use here to determine if a reload is required: https://github.com/dchester/epilogue/blob/master/lib/Controllers/update.js#L53