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/initializers | |
parent | 9f6bae3a9db13bf827f8aaff903aac06ec430903 (diff) | |
download | PeerTube-c4403b29ad4db097af528a7f04eea07e0ed320d0.tar.gz PeerTube-c4403b29ad4db097af528a7f04eea07e0ed320d0.tar.zst PeerTube-c4403b29ad4db097af528a7f04eea07e0ed320d0.zip |
Server: remove useless hash affectations
Diffstat (limited to 'server/initializers')
-rw-r--r-- | server/initializers/checker.js | 6 | ||||
-rw-r--r-- | server/initializers/installer.js | 8 |
2 files changed, 7 insertions, 7 deletions
diff --git a/server/initializers/checker.js b/server/initializers/checker.js index 2a33009b4..91fbcfaf9 100644 --- a/server/initializers/checker.js +++ b/server/initializers/checker.js | |||
@@ -7,9 +7,9 @@ const Client = mongoose.model('OAuthClient') | |||
7 | const User = mongoose.model('User') | 7 | const User = mongoose.model('User') |
8 | 8 | ||
9 | const checker = { | 9 | const checker = { |
10 | checkConfig: checkConfig, | 10 | checkConfig, |
11 | clientsExist: clientsExist, | 11 | clientsExist, |
12 | usersExist: usersExist | 12 | usersExist |
13 | } | 13 | } |
14 | 14 | ||
15 | // Check the config files | 15 | // Check the config files |
diff --git a/server/initializers/installer.js b/server/initializers/installer.js index 8c3148e79..1df300ba8 100644 --- a/server/initializers/installer.js +++ b/server/initializers/installer.js | |||
@@ -18,7 +18,7 @@ const Client = mongoose.model('OAuthClient') | |||
18 | const User = mongoose.model('User') | 18 | const User = mongoose.model('User') |
19 | 19 | ||
20 | const installer = { | 20 | const installer = { |
21 | installApplication: installApplication | 21 | installApplication |
22 | } | 22 | } |
23 | 23 | ||
24 | function installApplication (callback) { | 24 | function installApplication (callback) { |
@@ -107,9 +107,9 @@ function createOAuthAdminIfNotExist (callback) { | |||
107 | } | 107 | } |
108 | 108 | ||
109 | const user = new User({ | 109 | const user = new User({ |
110 | username: username, | 110 | username, |
111 | password: password, | 111 | password, |
112 | role: role | 112 | role |
113 | }) | 113 | }) |
114 | 114 | ||
115 | user.save(function (err, createdUser) { | 115 | user.save(function (err, createdUser) { |