aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/models/user.js
diff options
context:
space:
mode:
authorChocobozzz <florian.bigard@gmail.com>2016-10-02 12:19:02 +0200
committerChocobozzz <florian.bigard@gmail.com>2016-10-02 12:19:02 +0200
commitc4403b29ad4db097af528a7f04eea07e0ed320d0 (patch)
treec7d84fe1c45b7aa35d49312a83f4e7cfdf6af909 /server/models/user.js
parent9f6bae3a9db13bf827f8aaff903aac06ec430903 (diff)
downloadPeerTube-c4403b29ad4db097af528a7f04eea07e0ed320d0.tar.gz
PeerTube-c4403b29ad4db097af528a7f04eea07e0ed320d0.tar.zst
PeerTube-c4403b29ad4db097af528a7f04eea07e0ed320d0.zip
Server: remove useless hash affectations
Diffstat (limited to 'server/models/user.js')
-rw-r--r--server/models/user.js16
1 files changed, 8 insertions, 8 deletions
diff --git a/server/models/user.js b/server/models/user.js
index 91e8aeae1..a19de7072 100644
--- a/server/models/user.js
+++ b/server/models/user.js
@@ -23,17 +23,17 @@ UserSchema.path('username').required(customUsersValidators.isUserUsernameValid)
23UserSchema.path('role').validate(customUsersValidators.isUserRoleValid) 23UserSchema.path('role').validate(customUsersValidators.isUserRoleValid)
24 24
25UserSchema.methods = { 25UserSchema.methods = {
26 isPasswordMatch: isPasswordMatch, 26 isPasswordMatch,
27 toFormatedJSON: toFormatedJSON 27 toFormatedJSON
28} 28}
29 29
30UserSchema.statics = { 30UserSchema.statics = {
31 countTotal: countTotal, 31 countTotal,
32 getByUsername: getByUsername, 32 getByUsername,
33 list: list, 33 list,
34 listForApi: listForApi, 34 listForApi,
35 loadById: loadById, 35 loadById,
36 loadByUsername: loadByUsername 36 loadByUsername
37} 37}
38 38
39UserSchema.pre('save', function (next) { 39UserSchema.pre('save', function (next) {