diff options
author | Chocobozzz <me@florianbigard.com> | 2020-11-18 11:30:10 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2020-11-18 11:32:57 +0100 |
commit | 875f0610e42fad6046cc731fed1953cb0a451f38 (patch) | |
tree | a563ea602960e0b5eeff303167ea6954410ac255 /server/models | |
parent | e14de000f9d744d354322e65cc9fcdbfa2d0f432 (diff) | |
download | PeerTube-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/models')
-rw-r--r-- | server/models/video/video.ts | 6 |
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' | |||
129 | import { VideoStreamingPlaylistModel } from './video-streaming-playlist' | 129 | import { VideoStreamingPlaylistModel } from './video-streaming-playlist' |
130 | import { VideoTagModel } from './video-tag' | 130 | import { VideoTagModel } from './video-tag' |
131 | import { VideoViewModel } from './video-view' | 131 | import { VideoViewModel } from './video-view' |
132 | import { ne } from 'sequelize/types/lib/operators' | ||
132 | 133 | ||
133 | export enum ScopeNames { | 134 | export 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 | ||