diff options
Diffstat (limited to 'server/middlewares/validators/users.ts')
-rw-r--r-- | server/middlewares/validators/users.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/server/middlewares/validators/users.ts b/server/middlewares/validators/users.ts index c06735047..9db4fff77 100644 --- a/server/middlewares/validators/users.ts +++ b/server/middlewares/validators/users.ts | |||
@@ -20,7 +20,7 @@ function usersAddValidator (req: express.Request, res: express.Response, next: e | |||
20 | next() | 20 | next() |
21 | }) | 21 | }) |
22 | .catch(err => { | 22 | .catch(err => { |
23 | logger.error('Error in usersAdd request validator.', { error: err }) | 23 | logger.error('Error in usersAdd request validator.', err) |
24 | return res.sendStatus(500) | 24 | return res.sendStatus(500) |
25 | }) | 25 | }) |
26 | }) | 26 | }) |
@@ -41,7 +41,7 @@ function usersRemoveValidator (req: express.Request, res: express.Response, next | |||
41 | next() | 41 | next() |
42 | }) | 42 | }) |
43 | .catch(err => { | 43 | .catch(err => { |
44 | logger.error('Error in usersRemove request validator.', { error: err }) | 44 | logger.error('Error in usersRemove request validator.', err) |
45 | return res.sendStatus(500) | 45 | return res.sendStatus(500) |
46 | }) | 46 | }) |
47 | }) | 47 | }) |
@@ -71,7 +71,7 @@ function usersVideoRatingValidator (req: express.Request, res: express.Response, | |||
71 | next() | 71 | next() |
72 | }) | 72 | }) |
73 | .catch(err => { | 73 | .catch(err => { |
74 | logger.error('Error in user request validator.', { error: err }) | 74 | logger.error('Error in user request validator.', err) |
75 | return res.sendStatus(500) | 75 | return res.sendStatus(500) |
76 | }) | 76 | }) |
77 | }) | 77 | }) |