From 3015c5a15e1b95679f98725f22ad51e2bd24a608 Mon Sep 17 00:00:00 2001 From: Somay Chauhan Date: Wed, 4 Dec 2024 13:59:51 +0530 Subject: [PATCH] fix: trying to update the timeFormat throws error (#17991) * timeFormat should be an intiger --- .../v2/src/modules/users/inputs/update-managed-user.input.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/api/v2/src/modules/users/inputs/update-managed-user.input.ts b/apps/api/v2/src/modules/users/inputs/update-managed-user.input.ts index c1b7a10b60..9bdf3180b0 100644 --- a/apps/api/v2/src/modules/users/inputs/update-managed-user.input.ts +++ b/apps/api/v2/src/modules/users/inputs/update-managed-user.input.ts @@ -14,7 +14,7 @@ export class UpdateManagedUserInput { name?: string; @IsOptional() - @IsIn(["12", "24"]) + @IsIn([12, 24]) @ApiProperty({ example: 12, enum: [12, 24], description: "Must be 12 or 24" }) timeFormat?: TimeFormat;