aboutsummaryrefslogtreecommitdiffhomepage
path: root/server
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2020-11-18 11:30:10 +0100
committerChocobozzz <me@florianbigard.com>2020-11-18 11:32:57 +0100
commit875f0610e42fad6046cc731fed1953cb0a451f38 (patch)
treea563ea602960e0b5eeff303167ea6954410ac255 /server
parente14de000f9d744d354322e65cc9fcdbfa2d0f432 (diff)
downloadPeerTube-875f0610e42fad6046cc731fed1953cb0a451f38.tar.gz
PeerTube-875f0610e42fad6046cc731fed1953cb0a451f38.tar.zst
PeerTube-875f0610e42fad6046cc731fed1953cb0a451f38.zip
Don't take into account ended lives in concurrent lives check
Diffstat (limited to 'server')
-rw-r--r--server/models/video/video.ts6
1 files changed, 5 insertions, 1 deletions
diff --git a/server/models/video/video.ts b/server/models/video/video.ts
index f3055a494..f1782f78d 100644
--- a/server/models/video/video.ts
+++ b/server/models/video/video.ts
@@ -129,6 +129,7 @@ import { VideoShareModel } from './video-share'
129import { VideoStreamingPlaylistModel } from './video-streaming-playlist' 129import { VideoStreamingPlaylistModel } from './video-streaming-playlist'
130import { VideoTagModel } from './video-tag' 130import { VideoTagModel } from './video-tag'
131import { VideoViewModel } from './video-view' 131import { VideoViewModel } from './video-view'
132import { ne } from 'sequelize/types/lib/operators'
132 133
133export enum ScopeNames { 134export enum ScopeNames {
134 AVAILABLE_FOR_LIST_IDS = 'AVAILABLE_FOR_LIST_IDS', 135 AVAILABLE_FOR_LIST_IDS = 'AVAILABLE_FOR_LIST_IDS',
@@ -1181,7 +1182,10 @@ export class VideoModel extends Model<VideoModel> {
1181 const options = { 1182 const options = {
1182 where: { 1183 where: {
1183 remote: false, 1184 remote: false,
1184 isLive: true 1185 isLive: true,
1186 state: {
1187 [Op.ne]: VideoState.LIVE_ENDED
1188 }
1185 } 1189 }
1186 } 1190 }
1187 1191