1
0

removed pre find hook

This commit is contained in:
David Baldwynn 2016-07-04 17:49:26 -07:00
parent 8047eb9fce
commit afa53ecbf2

View File

@ -132,7 +132,7 @@ UserSchema.plugin(mUtilities.timestamp, {
useVirtual: false
});
/*
UserSchema.pre('find', function (next) {
//Change username if it is still the user's email
@ -153,7 +153,7 @@ UserSchema.pre('find', function (next) {
console.log('Username change message sent: ' + info.response);
});
}
});
});*/
UserSchema.pre('save', function (next) {