This commit is contained in:
Ahmed Bouhuolia
2025-03-28 04:08:27 +02:00
parent 6461a2318f
commit 1cfddf2b4d
12 changed files with 47 additions and 32 deletions

View File

@@ -1,4 +1,4 @@
import moment from 'moment-timezone';
import * as momentTz from 'moment-timezone';
import {
IsHexColor,
IsIn,
@@ -41,7 +41,7 @@ export class BuildOrganizationDto {
})
baseCurrency: string;
@IsIn(moment.tz.names())
@IsIn(momentTz.tz.names())
@ApiProperty({
description: 'Timezone of the organization',
example: 'America/New_York',
@@ -105,7 +105,7 @@ export class UpdateOrganizationDto {
baseCurrency?: string;
@IsOptional()
@IsIn(moment.tz.names())
@IsIn(momentTz.tz.names())
@ApiPropertyOptional({
description: 'Timezone of the organization',
example: 'America/New_York',