Update channels.js

This commit is contained in:
Aleksandr Statciuk 2022-04-11 23:31:51 +03:00
parent dfd51a5a92
commit a4357335ae

View file

@ -1,4 +1,4 @@
const Joi = require('joi')
const Joi = require('joi').extend(require('@joi/date'))
const path = require('path')
module.exports = {
@ -33,6 +33,8 @@ module.exports = {
),
categories: Joi.array().items(Joi.string().regex(/^[a-z]+$/)),
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),
website: Joi.string()
.uri({
scheme: ['http', 'https']