aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/controllers/api/pods.ts
diff options
context:
space:
mode:
authorChocobozzz <florian.bigard@gmail.com>2017-07-11 10:59:13 +0200
committerChocobozzz <florian.bigard@gmail.com>2017-07-11 10:59:13 +0200
commite6d4b0ff2404dcf0b3a755c3fcc415ffeb6e754d (patch)
treec50bf2ba57d54d2f87f51c29ad981da8c5660994 /server/controllers/api/pods.ts
parent33c4972d5b54155540267f4c9c9ee55c539b8385 (diff)
downloadPeerTube-e6d4b0ff2404dcf0b3a755c3fcc415ffeb6e754d.tar.gz
PeerTube-e6d4b0ff2404dcf0b3a755c3fcc415ffeb6e754d.tar.zst
PeerTube-e6d4b0ff2404dcf0b3a755c3fcc415ffeb6e754d.zip
Remove any typing from server
Diffstat (limited to 'server/controllers/api/pods.ts')
-rw-r--r--server/controllers/api/pods.ts3
1 files changed, 2 insertions, 1 deletions
diff --git a/server/controllers/api/pods.ts b/server/controllers/api/pods.ts
index 55a7df661..5210f9fe4 100644
--- a/server/controllers/api/pods.ts
+++ b/server/controllers/api/pods.ts
@@ -23,6 +23,7 @@ import {
23import { 23import {
24 PodInstance 24 PodInstance
25} from '../../models' 25} from '../../models'
26import { Pod as FormatedPod } from '../../../shared'
26 27
27const podsRouter = express.Router() 28const podsRouter = express.Router()
28 29
@@ -72,7 +73,7 @@ function addPods (req: express.Request, res: express.Response, next: express.Nex
72 73
73function listPods (req: express.Request, res: express.Response, next: express.NextFunction) { 74function listPods (req: express.Request, res: express.Response, next: express.NextFunction) {
74 db.Pod.list() 75 db.Pod.list()
75 .then(podsList => res.json(getFormatedObjects(podsList, podsList.length))) 76 .then(podsList => res.json(getFormatedObjects<FormatedPod, PodInstance>(podsList, podsList.length)))
76 .catch(err => next(err)) 77 .catch(err => next(err))
77} 78}
78 79