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:
parent
9f6bae3a9d
commit
c4403b29ad
39 changed files with 144 additions and 144 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue