fix(spells): temp fix to #4067, for some reason _v is undefined after

casting spells?
This commit is contained in:
Tyler Renelle 2014-09-24 13:07:40 -06:00
parent 577cfb8d31
commit 562f593c8f

View file

@ -404,6 +404,7 @@ UserSchema.pre('save', function(next) {
this.achievements.beastMaster = petCount >= 90;
//our own version incrementer
if (_.isNaN(this._v) || !_.isNumber(this._v)) this._v = 0;
this._v++;
next();