From 0aef76c479bc7fc758e70e1cd478ade46761b51b Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 25 Aug 2017 11:45:31 +0200 Subject: Formated -> Formatted --- server/controllers/api/videos/index.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'server/controllers/api/videos/index.ts') diff --git a/server/controllers/api/videos/index.ts b/server/controllers/api/videos/index.ts index d71a132ed..f639df098 100644 --- a/server/controllers/api/videos/index.ts +++ b/server/controllers/api/videos/index.ts @@ -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)) } -- cgit v1.2.3