aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/models/video
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2020-11-26 14:08:31 +0100
committerChocobozzz <me@florianbigard.com>2020-11-26 14:08:31 +0100
commitfb4b3f91dc1292c8ecd8a1523b49ff5bfb6035f4 (patch)
tree8d783c9ecece7fb27ee90bf66a87b121c2208894 /server/models/video
parent884d2c39ae23b44d0d037aaff0f66ad9ae0807ba (diff)
downloadPeerTube-fb4b3f91dc1292c8ecd8a1523b49ff5bfb6035f4.tar.gz
PeerTube-fb4b3f91dc1292c8ecd8a1523b49ff5bfb6035f4.tar.zst
PeerTube-fb4b3f91dc1292c8ecd8a1523b49ff5bfb6035f4.zip
Count only active lives for account limit
Diffstat (limited to 'server/models/video')
-rw-r--r--server/models/video/video.ts5
1 files changed, 4 insertions, 1 deletions
diff --git a/server/models/video/video.ts b/server/models/video/video.ts
index d33ae8a5a..a43abbc09 100644
--- a/server/models/video/video.ts
+++ b/server/models/video/video.ts
@@ -1195,7 +1195,10 @@ export class VideoModel extends Model<VideoModel> {
1195 const options = { 1195 const options = {
1196 where: { 1196 where: {
1197 remote: false, 1197 remote: false,
1198 isLive: true 1198 isLive: true,
1199 state: {
1200 [Op.ne]: VideoState.LIVE_ENDED
1201 }
1199 }, 1202 },
1200 include: [ 1203 include: [
1201 { 1204 {