aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/controllers/api/pods.ts
diff options
context:
space:
mode:
authorChocobozzz <florian.bigard@gmail.com>2017-08-25 11:45:31 +0200
committerChocobozzz <florian.bigard@gmail.com>2017-08-25 11:45:31 +0200
commit0aef76c479bc7fc758e70e1cd478ade46761b51b (patch)
treeed59eae3ee731c56d25cc35a382f4cc400d0dece /server/controllers/api/pods.ts
parent93e1258c7cbc0d1235ca6d2a1f7c1875985328b8 (diff)
downloadPeerTube-0aef76c479bc7fc758e70e1cd478ade46761b51b.tar.gz
PeerTube-0aef76c479bc7fc758e70e1cd478ade46761b51b.tar.zst
PeerTube-0aef76c479bc7fc758e70e1cd478ade46761b51b.zip
Formated -> Formatted
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