Skip to content

chore(server): Update to sequelize 4 #2750

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 24, 2018

Conversation

zeripath
Copy link
Contributor

Update sequelize to v4 and fix the user model to work with this.

Part of #2691

});
});
beforeBulkCreate(users, fields) {
return sequelize.Promise.map(users, user => user.updatePassword());
Copy link
Member

Choose a reason for hiding this comment

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

Does this not work if you just use the global Promise built into Node?

* @api public
*/
User.prototype.updatePassword = function() {
var user = this;
Copy link
Member

Choose a reason for hiding this comment

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

The alias for this seems unnecessary here

Update sequelize to v4 and fix the user model to work with this.

Part of angular-fullstack#2691
@Awk34 Awk34 merged commit 1a3ba73 into angular-fullstack:master Jul 24, 2018
@zeripath zeripath deleted the issue-2691 branch July 24, 2018 15:53
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.

2 participants