Created the channelValidation.ts

This commit is contained in:
Mathias committed 2023-11-11 18:56:08 +01:00
1 parent 848ee68462
commit 3d4dcdd7c8
1 file changed
+13
+13
View File
@@ -0,0 +1,13 @@
import Joi from 'joi';
export const patchChannel = Joi.object({
langCode: Joi.string()
.min(2)
.max(2),
designId: Joi.number()
.min(0)
.max(100),
topicId: Joi.number()
.min(0)
.max(100)
});