clarkie / dynogels

DynamoDB data mapper for node.js. Originally forked from https://github.com/ryanfitz/vogels
Other
491 stars 110 forks source link

Fix #185: Changing update function to update 'updatedAt' #186

Closed LittleJono closed 4 years ago

LittleJono commented 5 years ago

Fix for #185

There is a statement on line 313 of 'table.js' that looks for the 'updatedAt' field on a record. It is currently negated which causes dynogels to not update the field if it exists. By removing the negation this will cause the 'updatedAt' field to update correctly when the update function is called.