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

Optimize SQL requests of watch page API endpoints

This commit is contained in:
Chocobozzz 2018-09-18 12:00:49 +02:00
parent e972e046db
commit 627621c1e8
No known key found for this signature in database
GPG key ID: 583A612D890159BE
15 changed files with 68 additions and 60 deletions

View file

@ -86,7 +86,7 @@ async function listVideoThreadComments (req: express.Request, res: express.Respo
let resultList: ResultList<VideoCommentModel>
if (video.commentsEnabled === true) {
resultList = await VideoCommentModel.listThreadCommentsForApi(res.locals.video.id, res.locals.videoCommentThread.id)
resultList = await VideoCommentModel.listThreadCommentsForApi(video.id, res.locals.videoCommentThread.id)
} else {
resultList = {
total: 0,