diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2016-10-02 12:19:02 +0200 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2016-10-02 12:19:02 +0200 |
commit | c4403b29ad4db097af528a7f04eea07e0ed320d0 (patch) | |
tree | c7d84fe1c45b7aa35d49312a83f4e7cfdf6af909 /server/models/user.js | |
parent | 9f6bae3a9db13bf827f8aaff903aac06ec430903 (diff) | |
download | PeerTube-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.js | 16 |
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) | |||
23 | UserSchema.path('role').validate(customUsersValidators.isUserRoleValid) | 23 | UserSchema.path('role').validate(customUsersValidators.isUserRoleValid) |
24 | 24 | ||
25 | UserSchema.methods = { | 25 | UserSchema.methods = { |
26 | isPasswordMatch: isPasswordMatch, | 26 | isPasswordMatch, |
27 | toFormatedJSON: toFormatedJSON | 27 | toFormatedJSON |
28 | } | 28 | } |
29 | 29 | ||
30 | UserSchema.statics = { | 30 | UserSchema.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 | ||
39 | UserSchema.pre('save', function (next) { | 39 | UserSchema.pre('save', function (next) { |