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/videos/abuse.ts | |
parent | 93e1258c7cbc0d1235ca6d2a1f7c1875985328b8 (diff) | |
download | PeerTube-0aef76c479bc7fc758e70e1cd478ade46761b51b.tar.gz PeerTube-0aef76c479bc7fc758e70e1cd478ade46761b51b.tar.zst PeerTube-0aef76c479bc7fc758e70e1cd478ade46761b51b.zip |
Formated -> Formatted
Diffstat (limited to 'server/controllers/api/videos/abuse.ts')
-rw-r--r-- | server/controllers/api/videos/abuse.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/server/controllers/api/videos/abuse.ts b/server/controllers/api/videos/abuse.ts index 5cf0303fb..c9313d5f5 100644 --- a/server/controllers/api/videos/abuse.ts +++ b/server/controllers/api/videos/abuse.ts | |||
@@ -4,7 +4,7 @@ import { database as db } from '../../../initializers/database' | |||
4 | import * as friends from '../../../lib/friends' | 4 | import * as friends from '../../../lib/friends' |
5 | import { | 5 | import { |
6 | logger, | 6 | logger, |
7 | getFormatedObjects, | 7 | getFormattedObjects, |
8 | retryTransactionWrapper | 8 | retryTransactionWrapper |
9 | } from '../../../helpers' | 9 | } from '../../../helpers' |
10 | import { | 10 | import { |
@@ -46,7 +46,7 @@ export { | |||
46 | 46 | ||
47 | function listVideoAbuses (req: express.Request, res: express.Response, next: express.NextFunction) { | 47 | function listVideoAbuses (req: express.Request, res: express.Response, next: express.NextFunction) { |
48 | db.VideoAbuse.listForApi(req.query.start, req.query.count, req.query.sort) | 48 | db.VideoAbuse.listForApi(req.query.start, req.query.count, req.query.sort) |
49 | .then(result => res.json(getFormatedObjects(result.data, result.total))) | 49 | .then(result => res.json(getFormattedObjects(result.data, result.total))) |
50 | .catch(err => next(err)) | 50 | .catch(err => next(err)) |
51 | } | 51 | } |
52 | 52 | ||