1
0
Fork 0
mirror of https://github.com/Chocobozzz/PeerTube.git synced 2025-10-05 02:39:33 +02:00

Server: remove useless hash affectations

This commit is contained in:
Chocobozzz 2016-10-02 12:19:02 +02:00
parent 9f6bae3a9d
commit c4403b29ad
39 changed files with 144 additions and 144 deletions

View file

@ -23,17 +23,17 @@ UserSchema.path('username').required(customUsersValidators.isUserUsernameValid)
UserSchema.path('role').validate(customUsersValidators.isUserRoleValid)
UserSchema.methods = {
isPasswordMatch: isPasswordMatch,
toFormatedJSON: toFormatedJSON
isPasswordMatch,
toFormatedJSON
}
UserSchema.statics = {
countTotal: countTotal,
getByUsername: getByUsername,
list: list,
listForApi: listForApi,
loadById: loadById,
loadByUsername: loadByUsername
countTotal,
getByUsername,
list,
listForApi,
loadById,
loadByUsername
}
UserSchema.pre('save', function (next) {