diff options
Diffstat (limited to 'server/controllers/api/pods.ts')
-rw-r--r-- | server/controllers/api/pods.ts | 6 |
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' | |||
5 | import { | 5 | import { |
6 | logger, | 6 | logger, |
7 | getMyPublicCert, | 7 | getMyPublicCert, |
8 | getFormatedObjects | 8 | getFormattedObjects |
9 | } from '../../helpers' | 9 | } from '../../helpers' |
10 | import { | 10 | import { |
11 | sendOwnedVideosToPod, | 11 | sendOwnedVideosToPod, |
@@ -25,7 +25,7 @@ import { | |||
25 | import { | 25 | import { |
26 | PodInstance | 26 | PodInstance |
27 | } from '../../models' | 27 | } from '../../models' |
28 | import { Pod as FormatedPod } from '../../../shared' | 28 | import { Pod as FormattedPod } from '../../../shared' |
29 | 29 | ||
30 | const podsRouter = express.Router() | 30 | const podsRouter = express.Router() |
31 | 31 | ||
@@ -81,7 +81,7 @@ function addPods (req: express.Request, res: express.Response, next: express.Nex | |||
81 | 81 | ||
82 | function listPods (req: express.Request, res: express.Response, next: express.NextFunction) { | 82 | function 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 | ||