From 3a84dfde087a02c1a4baebabe1f2c3152022fc24 Mon Sep 17 00:00:00 2001 From: andreas-unleash Date: Tue, 4 Apr 2023 15:52:45 +0300 Subject: [PATCH] fix: bug (#3449) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Remove enum for defaultStickiness from joi schema ## About the changes Closes # ### Important files ## Discussion points Signed-off-by: andreas-unleash --- src/lib/services/project-schema.ts | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/lib/services/project-schema.ts b/src/lib/services/project-schema.ts index 6051f55cee..ca6282b7b4 100644 --- a/src/lib/services/project-schema.ts +++ b/src/lib/services/project-schema.ts @@ -8,9 +8,6 @@ export const projectSchema = joi name: joi.string().required(), description: joi.string().allow(null).allow('').optional(), mode: joi.string().valid('open', 'protected').default('open'), - defaultStickiness: joi - .string() - .valid('default', 'userId', 'sessionId', 'random') - .default('default'), + defaultStickiness: joi.string().default('default'), }) .options({ allowUnknown: false, stripUnknown: true });