aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/controllers
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2021-06-10 16:57:13 +0200
committerChocobozzz <me@florianbigard.com>2021-06-11 09:31:59 +0200
commit1d43c3a613c72d69f7360fee9e5bfe6f662d62f7 (patch)
treed4ba891ffdb1182e39620c06feff1503365d66b5 /server/controllers
parentd9bf974f5df787bbeaab5b04949ca91a2b3ca2a3 (diff)
downloadPeerTube-1d43c3a613c72d69f7360fee9e5bfe6f662d62f7.tar.gz
PeerTube-1d43c3a613c72d69f7360fee9e5bfe6f662d62f7.tar.zst
PeerTube-1d43c3a613c72d69f7360fee9e5bfe6f662d62f7.zip
Use separate queries for video files
Diffstat (limited to 'server/controllers')
-rw-r--r--server/controllers/api/videos/index.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/controllers/api/videos/index.ts b/server/controllers/api/videos/index.ts
index 8c6c44144..35992e993 100644
--- a/server/controllers/api/videos/index.ts
+++ b/server/controllers/api/videos/index.ts
@@ -147,7 +147,7 @@ async function getVideo (_req: express.Request, res: express.Response) {
147 147
148 const video = await Hooks.wrapPromiseFun( 148 const video = await Hooks.wrapPromiseFun(
149 VideoModel.loadForGetAPI, 149 VideoModel.loadForGetAPI,
150 { id: res.locals.onlyVideoWithRights.id, userId }, 150 { id: _req.params.id, userId },
151 'filter:api.video.get.result' 151 'filter:api.video.get.result'
152 ) 152 )
153 153