From 6d9bff097dbb5d7375a7ea1e42c97746904c063a Mon Sep 17 00:00:00 2001 From: Aleksandr Statciuk Date: Sat, 19 Feb 2022 06:18:59 +0300 Subject: [PATCH] Update regions.js --- scripts/db/schemes/regions.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/db/schemes/regions.js b/scripts/db/schemes/regions.js index fd8c0ad9..2560aa9d 100644 --- a/scripts/db/schemes/regions.js +++ b/scripts/db/schemes/regions.js @@ -10,6 +10,6 @@ module.exports = { countries: Joi.array().items( Joi.string() .regex(/^[A-Z]{2}$/) - .allow('') + .required() ) }