aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/controllers/api/pods.ts
diff options
context:
space:
mode:
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