Updated the channelValidation.ts

This commit is contained in:
2023-11-12 18:28:23 +01:00
parent 0bba59383b
commit 5e4c7e0168

@ -2,12 +2,13 @@ import Joi from 'joi';
export const patchChannel = Joi.object({ export const patchChannel = Joi.object({
langCode: Joi.string() langCode: Joi.string()
.allow("en", "de")
.min(2) .min(2)
.max(2), .max(2),
designId: Joi.number() designId: Joi.number()
.min(0) .min(0)
.max(100), .max(6),
topicId: Joi.number() topicId: Joi.number()
.min(0) .min(0)
.max(100) .max(5)
}); });