From 52ee1f148b40eba4abd020b8f42e772f3ad371bb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ivar=20Conradi=20=C3=98sthus?= Date: Tue, 11 Jan 2022 13:49:11 +0100 Subject: [PATCH] fix: typo in role-schema.ts --- src/lib/schema/role-schema.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/schema/role-schema.ts b/src/lib/schema/role-schema.ts index 8959c0302b..67fc1d5ee7 100644 --- a/src/lib/schema/role-schema.ts +++ b/src/lib/schema/role-schema.ts @@ -4,7 +4,7 @@ export const permissionRoleSchema = joi .object() .keys({ id: joi.number().required(), - enivronment: joi.string().allow(null).optional(), + environment: joi.string().optional().allow('').allow(null).default(''), }) .options({ stripUnknown: true, allowUnknown: false, abortEarly: false });