aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/middlewares/validators/videos/video-live.ts
diff options
context:
space:
mode:
Diffstat (limited to 'server/middlewares/validators/videos/video-live.ts')
-rw-r--r--server/middlewares/validators/videos/video-live.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/middlewares/validators/videos/video-live.ts b/server/middlewares/validators/videos/video-live.ts
index 59638d5e0..777b57e9a 100644
--- a/server/middlewares/validators/videos/video-live.ts
+++ b/server/middlewares/validators/videos/video-live.ts
@@ -119,7 +119,7 @@ const videoLiveAddValidator = getCommonVideoEditAttributes().concat([
119 if (!await doesVideoChannelOfAccountExist(body.channelId, user, res)) return cleanUpReqFiles(req) 119 if (!await doesVideoChannelOfAccountExist(body.channelId, user, res)) return cleanUpReqFiles(req)
120 120
121 if (CONFIG.LIVE.MAX_INSTANCE_LIVES !== -1) { 121 if (CONFIG.LIVE.MAX_INSTANCE_LIVES !== -1) {
122 const totalInstanceLives = await VideoModel.countLocalLives() 122 const totalInstanceLives = await VideoModel.countLives({ remote: false, mode: 'not-ended' })
123 123
124 if (totalInstanceLives >= CONFIG.LIVE.MAX_INSTANCE_LIVES) { 124 if (totalInstanceLives >= CONFIG.LIVE.MAX_INSTANCE_LIVES) {
125 cleanUpReqFiles(req) 125 cleanUpReqFiles(req)