From dda68979cef4ee28199792b1aa196c35b90a675f Mon Sep 17 00:00:00 2001 From: Aleksandr Statciuk Date: Sat, 19 Feb 2022 19:10:21 +0300 Subject: [PATCH] Update channels.js --- scripts/db/schemes/channels.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/scripts/db/schemes/channels.js b/scripts/db/schemes/channels.js index 33d7cab5..bb29d425 100644 --- a/scripts/db/schemes/channels.js +++ b/scripts/db/schemes/channels.js @@ -29,5 +29,9 @@ module.exports = { ), categories: Joi.array().items(Joi.string().regex(/^[a-z]+$/)), is_nsfw: Joi.boolean().strict().required(), - logo: Joi.string().uri().allow(null) + logo: Joi.string() + .uri({ + scheme: ['https'] + }) + .allow(null) }