Skip to content

Scheduling infrastructure for absolutely everyone.

fix: trying to update the timeFormat throws error (#17991)

Somay Chauhan3015c5a15e1b
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 c1b7a10b602..9bdf3180b07 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;