diff options
Diffstat (limited to 'server/controllers/static.ts')
-rw-r--r-- | server/controllers/static.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server/controllers/static.ts b/server/controllers/static.ts index 639445b74..7b14320e4 100644 --- a/server/controllers/static.ts +++ b/server/controllers/static.ts | |||
@@ -245,7 +245,7 @@ async function downloadVideoFile (req: express.Request, res: express.Response, n | |||
245 | 245 | ||
246 | function getVideoAndFile (req: express.Request, res: express.Response) { | 246 | function getVideoAndFile (req: express.Request, res: express.Response) { |
247 | const resolution = parseInt(req.params.resolution, 10) | 247 | const resolution = parseInt(req.params.resolution, 10) |
248 | const video: VideoModel = res.locals.video | 248 | const video = res.locals.video |
249 | 249 | ||
250 | const videoFile = video.VideoFiles.find(f => f.resolution === resolution) | 250 | const videoFile = video.VideoFiles.find(f => f.resolution === resolution) |
251 | 251 | ||