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.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/server/controllers/api/pods.ts b/server/controllers/api/pods.ts
index 916b131d9..e1fa4b7e8 100644
--- a/server/controllers/api/pods.ts
+++ b/server/controllers/api/pods.ts
@@ -5,7 +5,7 @@ import { CONFIG } from '../../initializers'
5import { 5import {
6 logger, 6 logger,
7 getMyPublicCert, 7 getMyPublicCert,
8 getFormatedObjects 8 getFormattedObjects
9} from '../../helpers' 9} from '../../helpers'
10import { 10import {
11 sendOwnedVideosToPod, 11 sendOwnedVideosToPod,
@@ -25,7 +25,7 @@ import {
25import { 25import {
26 PodInstance 26 PodInstance
27} from '../../models' 27} from '../../models'
28import { Pod as FormatedPod } from '../../../shared' 28import { Pod as FormattedPod } from '../../../shared'
29 29
30const podsRouter = express.Router() 30const podsRouter = express.Router()
31 31
@@ -81,7 +81,7 @@ function addPods (req: express.Request, res: express.Response, next: express.Nex
81 81
82function listPods (req: express.Request, res: express.Response, next: express.NextFunction) { 82function listPods (req: express.Request, res: express.Response, next: express.NextFunction) {
83 db.Pod.list() 83 db.Pod.list()
84 .then(podsList => res.json(getFormatedObjects<FormatedPod, PodInstance>(podsList, podsList.length))) 84 .then(podsList => res.json(getFormattedObjects<FormattedPod, PodInstance>(podsList, podsList.length)))
85 .catch(err => next(err)) 85 .catch(err => next(err))
86} 86}
87 87