Skip to content

instance.changed() in beforeUpdate hook would always be false. Fixes #3631#3727

Merged
mickhansen merged 1 commit intosequelize:masterfrom
fintura:fix-update-hook
May 17, 2015
Merged

instance.changed() in beforeUpdate hook would always be false. Fixes #3631#3727
mickhansen merged 1 commit intosequelize:masterfrom
fintura:fix-update-hook

Conversation

@BridgeAR
Copy link
Copy Markdown
Contributor

I also removed some old callbacks from some hooks.

@BridgeAR
Copy link
Copy Markdown
Contributor Author

Green build

@janmeier
Copy link
Copy Markdown
Member

LGTM - needs a rebase

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Better to call instance.changed(field) rather than setting the value again.

@mickhansen mickhansen merged commit ba537e9 into sequelize:master May 17, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants