Browse Source

Don't take into account ended lives in concurrent lives check

pull/3326/head
Chocobozzz 1 week ago
parent
commit
875f0610e4
No known key found for this signature in database GPG Key ID: 583A612D890159BE
1 changed files with 5 additions and 1 deletions
  1. +5
    -1
      server/models/video/video.ts

+ 5
- 1
server/models/video/video.ts View File

@@ -129,6 +129,7 @@ import { VideoShareModel } from './video-share'
import { VideoStreamingPlaylistModel } from './video-streaming-playlist'
import { VideoTagModel } from './video-tag'
import { VideoViewModel } from './video-view'
import { ne } from 'sequelize/types/lib/operators'

export enum ScopeNames {
AVAILABLE_FOR_LIST_IDS = 'AVAILABLE_FOR_LIST_IDS',
@@ -1181,7 +1182,10 @@ export class VideoModel extends Model<VideoModel> {
const options = {
where: {
remote: false,
isLive: true
isLive: true,
state: {
[Op.ne]: VideoState.LIVE_ENDED
}
}
}



Loading…
Cancel
Save