aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--server/middlewares/validators/videos/video-channels.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/middlewares/validators/videos/video-channels.ts b/server/middlewares/validators/videos/video-channels.ts
index ce2d61d49..ebce14714 100644
--- a/server/middlewares/validators/videos/video-channels.ts
+++ b/server/middlewares/validators/videos/video-channels.ts
@@ -36,7 +36,7 @@ const videoChannelsAddValidator = [
36 } 36 }
37 37
38 const count = await VideoChannelModel.countByAccount(res.locals.oauth.token.User.Account.id) 38 const count = await VideoChannelModel.countByAccount(res.locals.oauth.token.User.Account.id)
39 if (count > VIDEO_CHANNELS.MAX_PER_USER) { 39 if (count >= VIDEO_CHANNELS.MAX_PER_USER) {
40 res.status(400) 40 res.status(400)
41 .send({ error: `You cannot create more than ${VIDEO_CHANNELS.MAX_PER_USER} channels` }) 41 .send({ error: `You cannot create more than ${VIDEO_CHANNELS.MAX_PER_USER} channels` })
42 .end() 42 .end()