You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
bulkUpdate() will crash if there's a "field: " definition and a custom setter with validation #9796
constuser=this.sequelize.define('Users',{username: {type: Sequelize.STRING,allowNull: false,field: "data",// something differentget: function(){constval=this.getDataValue("username");returnval.substring(0,val.length-1);},set: function(val){if(val.indexOf('!')>-1){thrownewError("val should not include a '!'");}this.setDataValue("username",val+"!");}}});
Activity
andrewAtPaymentRails commentedon Aug 13, 2018
I have a patch for this
fix(model): Fix edge case crash in bulkCreate ( sequelize#9796)
fix(model): Fix edge case crash in bulkCreate ( sequelize#9796)
sushantdhiman commentedon Aug 15, 2018
Fixed by #9797