From 7be7791ac7947364338ab0c0d2567a583187e3d3 Mon Sep 17 00:00:00 2001 From: Aleksandr Statciuk Date: Mon, 17 Oct 2022 16:25:59 +0300 Subject: [PATCH] Update channels.js --- scripts/db/schemes/channels.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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(),