1
0
Fork 0
mirror of https://github.com/Chocobozzz/PeerTube.git synced 2025-10-05 19:42:24 +02:00

Remove any typing from server

This commit is contained in:
Chocobozzz 2017-07-11 10:59:13 +02:00
parent 33c4972d5b
commit e6d4b0ff24
5 changed files with 20 additions and 18 deletions

View file

@ -23,6 +23,7 @@ import {
import {
PodInstance
} from '../../models'
import { Pod as FormatedPod } from '../../../shared'
const podsRouter = express.Router()
@ -72,7 +73,7 @@ function addPods (req: express.Request, res: express.Response, next: express.Nex
function listPods (req: express.Request, res: express.Response, next: express.NextFunction) {
db.Pod.list()
.then(podsList => res.json(getFormatedObjects(podsList, podsList.length)))
.then(podsList => res.json(getFormatedObjects<FormatedPod, PodInstance>(podsList, podsList.length)))
.catch(err => next(err))
}