diff options
Diffstat (limited to 'server/controllers/api/videos/captions.ts')
-rw-r--r-- | server/controllers/api/videos/captions.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server/controllers/api/videos/captions.ts b/server/controllers/api/videos/captions.ts index 2d2213327..aa7259ee9 100644 --- a/server/controllers/api/videos/captions.ts +++ b/server/controllers/api/videos/captions.ts | |||
@@ -48,7 +48,7 @@ export { | |||
48 | // --------------------------------------------------------------------------- | 48 | // --------------------------------------------------------------------------- |
49 | 49 | ||
50 | async function listVideoCaptions (req: express.Request, res: express.Response) { | 50 | async function listVideoCaptions (req: express.Request, res: express.Response) { |
51 | const data = await VideoCaptionModel.listVideoCaptions(res.locals.videoId.id) | 51 | const data = await VideoCaptionModel.listVideoCaptions(res.locals.onlyVideo.id) |
52 | 52 | ||
53 | return res.json(getFormattedObjects(data, data.length)) | 53 | return res.json(getFormattedObjects(data, data.length)) |
54 | } | 54 | } |