mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-05 19:42:24 +02:00
Cleanup express locals typings
This commit is contained in:
parent
e65c0c5b1f
commit
dae86118ed
45 changed files with 270 additions and 234 deletions
|
@ -245,7 +245,7 @@ async function downloadVideoFile (req: express.Request, res: express.Response, n
|
|||
|
||||
function getVideoAndFile (req: express.Request, res: express.Response) {
|
||||
const resolution = parseInt(req.params.resolution, 10)
|
||||
const video: VideoModel = res.locals.video
|
||||
const video = res.locals.video
|
||||
|
||||
const videoFile = video.VideoFiles.find(f => f.resolution === resolution)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue