From 72b7ea5c492be56529dd1709f2d7f7c94f8e3256 Mon Sep 17 00:00:00 2001 From: Aleksandr Statciuk Date: Wed, 25 May 2022 00:37:36 +0300 Subject: [PATCH] Update channels.js --- scripts/db/schemes/channels.js | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/db/schemes/channels.js b/scripts/db/schemes/channels.js index 1dd51199..98ca1d58 100644 --- a/scripts/db/schemes/channels.js +++ b/scripts/db/schemes/channels.js @@ -10,6 +10,7 @@ module.exports = { .required(), native_name: Joi.string() .regex(/^[^",]+$/) + .invalid(Joi.ref('name')) .allow(null), network: Joi.string().allow(null), country: Joi.string()