1
0
Fork 0
mirror of https://github.com/Chocobozzz/PeerTube.git synced 2025-10-06 03:50:26 +02:00

Use separate queries for video files

This commit is contained in:
Chocobozzz 2021-06-10 16:57:13 +02:00
parent d9bf974f5d
commit 1d43c3a613
No known key found for this signature in database
GPG key ID: 583A612D890159BE
9 changed files with 232 additions and 57 deletions

View file

@ -147,7 +147,7 @@ async function getVideo (_req: express.Request, res: express.Response) {
const video = await Hooks.wrapPromiseFun(
VideoModel.loadForGetAPI,
{ id: res.locals.onlyVideoWithRights.id, userId },
{ id: _req.params.id, userId },
'filter:api.video.get.result'
)