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:
parent
d9bf974f5d
commit
1d43c3a613
9 changed files with 232 additions and 57 deletions
|
@ -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'
|
||||
)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue