aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/models/video/video.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2022-07-18 14:53:50 +0200
committerChocobozzz <me@florianbigard.com>2022-07-18 14:53:50 +0200
commit58c44687f748a3ea5feafe6335fe962aea8186bd (patch)
tree1d0a1846f439c15edfbf67327623fc3bcca4e92a /server/models/video/video.ts
parent1efad362ef0b65118d1d79d802ffc928994c0ef6 (diff)
downloadPeerTube-58c44687f748a3ea5feafe6335fe962aea8186bd.tar.gz
PeerTube-58c44687f748a3ea5feafe6335fe962aea8186bd.tar.zst
PeerTube-58c44687f748a3ea5feafe6335fe962aea8186bd.zip
Fix my videos counter
Diffstat (limited to 'server/models/video/video.ts')
-rw-r--r--server/models/video/video.ts4
1 files changed, 3 insertions, 1 deletions
diff --git a/server/models/video/video.ts b/server/models/video/video.ts
index 53328d311..55da53058 100644
--- a/server/models/video/video.ts
+++ b/server/models/video/video.ts
@@ -1005,7 +1005,9 @@ export class VideoModel extends Model<Partial<AttributesOnly<VideoModel>>> {
1005 order: getVideoSort(sort), 1005 order: getVideoSort(sort),
1006 include: [ 1006 include: [
1007 { 1007 {
1008 model: VideoChannelModel, 1008 model: forCount
1009 ? VideoChannelModel.unscoped()
1010 : VideoChannelModel,
1009 required: true, 1011 required: true,
1010 where: channelWhere, 1012 where: channelWhere,
1011 include: [ 1013 include: [