diff options
Diffstat (limited to 'server/middlewares/validators/pods.ts')
-rw-r--r-- | server/middlewares/validators/pods.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/server/middlewares/validators/pods.ts b/server/middlewares/validators/pods.ts index 022fd7f9a..481a66957 100644 --- a/server/middlewares/validators/pods.ts +++ b/server/middlewares/validators/pods.ts | |||
@@ -18,7 +18,7 @@ function makeFriendsValidator (req: express.Request, res: express.Response, next | |||
18 | 18 | ||
19 | logger.debug('Checking makeFriends parameters', { parameters: req.body }) | 19 | logger.debug('Checking makeFriends parameters', { parameters: req.body }) |
20 | 20 | ||
21 | checkErrors(req, res, function () { | 21 | checkErrors(req, res, () => { |
22 | hasFriends() | 22 | hasFriends() |
23 | .then(heHasFriends => { | 23 | .then(heHasFriends => { |
24 | if (heHasFriends === true) { | 24 | if (heHasFriends === true) { |
@@ -41,7 +41,7 @@ function podsAddValidator (req: express.Request, res: express.Response, next: ex | |||
41 | req.checkBody('publicKey', 'Should have a public key').notEmpty() | 41 | req.checkBody('publicKey', 'Should have a public key').notEmpty() |
42 | logger.debug('Checking podsAdd parameters', { parameters: req.body }) | 42 | logger.debug('Checking podsAdd parameters', { parameters: req.body }) |
43 | 43 | ||
44 | checkErrors(req, res, function () { | 44 | checkErrors(req, res, () => { |
45 | db.Pod.loadByHost(req.body.host) | 45 | db.Pod.loadByHost(req.body.host) |
46 | .then(pod => { | 46 | .then(pod => { |
47 | // Pod with this host already exists | 47 | // Pod with this host already exists |