diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2017-01-27 11:55:31 +0100 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2017-01-27 11:55:31 +0100 |
commit | b09ce6455f8e2bf9dd741532e6ad09309880ff74 (patch) | |
tree | 7d2ec942e50b8f3347ed4287e07e2bc88619e585 /server/controllers | |
parent | 0d4fb7e6d482635cd725cd2f09cf981f82cbd92c (diff) | |
download | PeerTube-b09ce6455f8e2bf9dd741532e6ad09309880ff74.tar.gz PeerTube-b09ce6455f8e2bf9dd741532e6ad09309880ff74.tar.zst PeerTube-b09ce6455f8e2bf9dd741532e6ad09309880ff74.zip |
Server: error if we add a pod that already exists
Diffstat (limited to 'server/controllers')
-rw-r--r-- | server/controllers/api/pods.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server/controllers/api/pods.js b/server/controllers/api/pods.js index e1fe6fb5d..da991f8d9 100644 --- a/server/controllers/api/pods.js +++ b/server/controllers/api/pods.js | |||
@@ -20,8 +20,8 @@ const router = express.Router() | |||
20 | 20 | ||
21 | router.get('/', listPods) | 21 | router.get('/', listPods) |
22 | router.post('/', | 22 | router.post('/', |
23 | podsMiddleware.setBodyHostPort, // We need to modify the host before running the validator! | ||
23 | validators.podsAdd, | 24 | validators.podsAdd, |
24 | podsMiddleware.setBodyHostPort, | ||
25 | addPods | 25 | addPods |
26 | ) | 26 | ) |
27 | router.post('/makefriends', | 27 | router.post('/makefriends', |