diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2017-08-25 11:45:31 +0200 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2017-08-25 11:45:31 +0200 |
commit | 0aef76c479bc7fc758e70e1cd478ade46761b51b (patch) | |
tree | ed59eae3ee731c56d25cc35a382f4cc400d0dece /server/controllers/api/pods.ts | |
parent | 93e1258c7cbc0d1235ca6d2a1f7c1875985328b8 (diff) | |
download | PeerTube-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.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 | ||