diff --git a/scripts/db/schemes/channels.js b/scripts/db/schemes/channels.js index f4327140..333c71f9 100644 --- a/scripts/db/schemes/channels.js +++ b/scripts/db/schemes/channels.js @@ -12,8 +12,10 @@ module.exports = { .regex(/^[^",]+$/) .invalid(Joi.ref('name')) .allow(null), - network: Joi.string().allow(null), - owner: Joi.string().allow(null), + network: Joi.string() + .regex(/^[^",]+$/) + .allow(null), + owners: Joi.array().items(Joi.string().regex(/^[^",]+$/)), country: Joi.string() .regex(/^[A-Z]{2}$/) .required(),