aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/middlewares/reqValidators/pods.js
diff options
context:
space:
mode:
Diffstat (limited to 'server/middlewares/reqValidators/pods.js')
-rw-r--r--server/middlewares/reqValidators/pods.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/server/middlewares/reqValidators/pods.js b/server/middlewares/reqValidators/pods.js
index 77449480c..78a4b76c1 100644
--- a/server/middlewares/reqValidators/pods.js
+++ b/server/middlewares/reqValidators/pods.js
@@ -26,8 +26,10 @@ function makeFriends (req, res, next) {
26} 26}
27 27
28function podsAdd (req, res, next) { 28function podsAdd (req, res, next) {
29 req.checkBody('data.url', 'Should have an url').notEmpty().isURL({ require_protocol: true }) 29 req.checkBody('url', 'Should have an url').notEmpty().isURL({ require_protocol: true })
30 req.checkBody('data.publicKey', 'Should have a public key').notEmpty() 30 req.checkBody('publicKey', 'Should have a public key').notEmpty()
31
32 // TODO: check we don't have it already
31 33
32 logger.debug('Checking podsAdd parameters', { parameters: req.body }) 34 logger.debug('Checking podsAdd parameters', { parameters: req.body })
33 35