]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - server/controllers/api/pods.ts
Add user update for admins
[github/Chocobozzz/PeerTube.git] / server / controllers / api / pods.ts
index 916b131d9ac568513d72a7f1fe4a73ed04aad252..e1fa4b7e8b1d67c597b1f69bf3bb144ba694d102 100644 (file)
@@ -5,7 +5,7 @@ import { CONFIG } from '../../initializers'
 import {
   logger,
   getMyPublicCert,
-  getFormatedObjects
+  getFormattedObjects
 } from '../../helpers'
 import {
   sendOwnedVideosToPod,
@@ -25,7 +25,7 @@ import {
 import {
   PodInstance
 } from '../../models'
-import { Pod as FormatedPod } from '../../../shared'
+import { Pod as FormattedPod } from '../../../shared'
 
 const podsRouter = express.Router()
 
@@ -81,7 +81,7 @@ function addPods (req: express.Request, res: express.Response, next: express.Nex
 
 function listPods (req: express.Request, res: express.Response, next: express.NextFunction) {
   db.Pod.list()
-    .then(podsList => res.json(getFormatedObjects<FormatedPod, PodInstance>(podsList, podsList.length)))
+    .then(podsList => res.json(getFormattedObjects<FormattedPod, PodInstance>(podsList, podsList.length)))
     .catch(err => next(err))
 }