From ca2c82db38a66a55194c90dbbd6aa9825d10c00e Mon Sep 17 00:00:00 2001 From: Miodec Date: Wed, 4 May 2022 01:20:26 +0200 Subject: [PATCH] removed unused types --- backend/api/schemas/config-schema.ts | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/backend/api/schemas/config-schema.ts b/backend/api/schemas/config-schema.ts index a7daea0dd..a2e980e37 100644 --- a/backend/api/schemas/config-schema.ts +++ b/backend/api/schemas/config-schema.ts @@ -35,10 +35,7 @@ const CONFIG_SCHEMA = joi.object({ mode: joi.string().valid("time", "words", "quote", "zen", "custom"), quoteLength: joi.array().items(joi.number()), language: joi.string(), - fontSize: joi.alternatives().try( - joi.number().valid(1, 125, 15, 2, 3, 4), //todo remove after a week - joi.string().valid("1", "125", "15", "2", "3", "4") - ), + fontSize: joi.string().valid("1", "125", "15", "2", "3", "4"), freedomMode: joi.boolean(), difficulty: joi.string().valid("normal", "expert", "master"), blindMode: joi.boolean(),