From c25c85e05b15be5adeb490c36ab8d1991cb35345 Mon Sep 17 00:00:00 2001 From: Morgan Vernay Date: Thu, 27 Jun 2024 10:34:25 +0200 Subject: [PATCH] fix: path /me endpoint should capitalize timezone apiv2 --- .../v2/src/modules/users/inputs/update-managed-user.input.ts | 2 ++ 1 file changed, 2 insertions(+) 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 b2241989954c86..7e62a501d21612 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 @@ -1,3 +1,4 @@ +import { CapitalizeTimeZone } from "@/lib/inputs/capitalize-timezone"; import { TimeFormat, WeekDay } from "@/modules/users/inputs/create-managed-user.input"; import { ApiProperty } from "@nestjs/swagger"; import { IsIn, IsNumber, IsOptional, IsString, IsTimeZone } from "class-validator"; @@ -31,5 +32,6 @@ export class UpdateManagedUserInput { @IsTimeZone() @IsOptional() + @CapitalizeTimeZone() timeZone?: string; }