Fix totalRepliesFromVideoAuthor SQL request
This commit is contained in:
parent
0385b79750
commit
562724a1ed
|
@ -62,8 +62,10 @@ enum ScopeNames {
|
||||||
'(' +
|
'(' +
|
||||||
'SELECT COUNT("replies"."id") ' +
|
'SELECT COUNT("replies"."id") ' +
|
||||||
'FROM "videoComment" AS "replies" ' +
|
'FROM "videoComment" AS "replies" ' +
|
||||||
|
'INNER JOIN "video" ON "video"."id" = "replies"."videoId" ' +
|
||||||
|
'INNER JOIN "videoChannel" ON "videoChannel"."id" = "video"."channelId" ' +
|
||||||
'WHERE "replies"."originCommentId" = "VideoCommentModel"."id" ' +
|
'WHERE "replies"."originCommentId" = "VideoCommentModel"."id" ' +
|
||||||
'AND "accountId" = ' + userAccountId +
|
'AND "replies"."accountId" = "videoChannel"."accountId"' +
|
||||||
')'
|
')'
|
||||||
),
|
),
|
||||||
'totalRepliesFromVideoAuthor'
|
'totalRepliesFromVideoAuthor'
|
||||||
|
|
Loading…
Reference in New Issue