diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2017-07-11 10:59:13 +0200 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2017-07-11 10:59:13 +0200 |
commit | e6d4b0ff2404dcf0b3a755c3fcc415ffeb6e754d (patch) | |
tree | c50bf2ba57d54d2f87f51c29ad981da8c5660994 /server/controllers | |
parent | 33c4972d5b54155540267f4c9c9ee55c539b8385 (diff) | |
download | PeerTube-e6d4b0ff2404dcf0b3a755c3fcc415ffeb6e754d.tar.gz PeerTube-e6d4b0ff2404dcf0b3a755c3fcc415ffeb6e754d.tar.zst PeerTube-e6d4b0ff2404dcf0b3a755c3fcc415ffeb6e754d.zip |
Remove any typing from server
Diffstat (limited to 'server/controllers')
-rw-r--r-- | server/controllers/api/pods.ts | 3 |
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 { | |||
23 | import { | 23 | import { |
24 | PodInstance | 24 | PodInstance |
25 | } from '../../models' | 25 | } from '../../models' |
26 | import { Pod as FormatedPod } from '../../../shared' | ||
26 | 27 | ||
27 | const podsRouter = express.Router() | 28 | const podsRouter = express.Router() |
28 | 29 | ||
@@ -72,7 +73,7 @@ function addPods (req: express.Request, res: express.Response, next: express.Nex | |||
72 | 73 | ||
73 | function listPods (req: express.Request, res: express.Response, next: express.NextFunction) { | 74 | function 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 | ||