1
0
Fork 0
mirror of https://github.com/Chocobozzz/PeerTube.git synced 2025-10-04 18:29:27 +02:00

Formated -> Formatted

This commit is contained in:
Chocobozzz 2017-08-25 11:45:31 +02:00
parent 93e1258c7c
commit 0aef76c479
17 changed files with 63 additions and 63 deletions

View file

@ -36,7 +36,7 @@ import {
logger,
retryTransactionWrapper,
generateRandomString,
getFormatedObjects,
getFormattedObjects,
renamePromise
} from '../../../helpers'
import { TagInstance } from '../../../models'
@ -386,12 +386,12 @@ function getVideo (req: express.Request, res: express.Response, next: express.Ne
}
// Do not wait the view system
res.json(videoInstance.toFormatedJSON())
res.json(videoInstance.toFormattedJSON())
}
function listVideos (req: express.Request, res: express.Response, next: express.NextFunction) {
db.Video.listForApi(req.query.start, req.query.count, req.query.sort)
.then(result => res.json(getFormatedObjects(result.data, result.total)))
.then(result => res.json(getFormattedObjects(result.data, result.total)))
.catch(err => next(err))
}
@ -408,6 +408,6 @@ function removeVideo (req: express.Request, res: express.Response, next: express
function searchVideos (req: express.Request, res: express.Response, next: express.NextFunction) {
db.Video.searchAndPopulateAuthorAndPodAndTags(req.params.value, req.query.field, req.query.start, req.query.count, req.query.sort)
.then(result => res.json(getFormatedObjects(result.data, result.total)))
.then(result => res.json(getFormattedObjects(result.data, result.total)))
.catch(err => next(err))
}