style: format code
All checks were successful
container-scan / Container Scan (pull_request) Successful in 3m10s
docker-build / docker (pull_request) Successful in 7m25s

This commit is contained in:
Dominik 2025-06-23 10:45:56 +02:00
parent 4cf5ce26ff
commit 29f2a01ac6
Signed by: dominik
GPG key ID: 06A4003FC5049644
5 changed files with 28 additions and 18 deletions

View file

@ -113,11 +113,9 @@ export const passwordSchema = zod
// Timezone Validation
//
// ----------------------------------------
export const timezoneSchema = zod
.enum(allTimeZones)
.openapi('Timezone', {
description: 'Valid timezone from the list of supported timezones',
});
export const timezoneSchema = zod.enum(allTimeZones).openapi('Timezone', {
description: 'Valid timezone from the list of supported timezones',
});
// ----------------------------------------
//
@ -132,7 +130,10 @@ export const FullUserSchema = zod
last_name: zod.string().nullish(),
email: zod.email(),
image: zod.url().nullish(),
timezone: zod.string().refine((i) => (allTimeZones as string[]).includes(i)).nullish(),
timezone: zod
.string()
.refine((i) => (allTimeZones as string[]).includes(i))
.nullish(),
created_at: zod.date(),
updated_at: zod.date(),
})