From f62c952edc480ff33e2c5db46d5fc27c27120a82 Mon Sep 17 00:00:00 2001 From: Aleksandr Statciuk Date: Thu, 21 Apr 2022 21:47:00 +0300 Subject: [PATCH] Update channels.js --- scripts/db/schemes/channels.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/db/schemes/channels.js b/scripts/db/schemes/channels.js index 29b007dc..24fd158f 100644 --- a/scripts/db/schemes/channels.js +++ b/scripts/db/schemes/channels.js @@ -35,6 +35,9 @@ module.exports = { is_nsfw: Joi.boolean().strict().required(), launched: Joi.date().format('YYYY-MM-DD').raw().allow(null), closed: Joi.date().format('YYYY-MM-DD').raw().allow(null), + replaced_by: Joi.string() + .regex(/^[A-Za-z0-9]+\.[a-z]{2}$/) + .allow(null), website: Joi.string() .uri({ scheme: ['http', 'https']