From 548d215a90843f3846a7b7690a1ca5e42db6479c Mon Sep 17 00:00:00 2001 From: origranot Date: Sat, 2 Nov 2024 12:24:22 +0200 Subject: [PATCH] fix: frontend build errors --- apps/backend/src/core/users/dto/update.dto.ts | 2 +- apps/frontend/src/routes/dashboard/settings/index.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/backend/src/core/users/dto/update.dto.ts b/apps/backend/src/core/users/dto/update.dto.ts index 757e84b4..66a83687 100644 --- a/apps/backend/src/core/users/dto/update.dto.ts +++ b/apps/backend/src/core/users/dto/update.dto.ts @@ -1,4 +1,4 @@ -import { IsBase64, IsOptional, IsString, MaxLength, MinLength } from 'class-validator'; +import { IsOptional, IsString, MaxLength, MinLength } from 'class-validator'; export class UpdateDto { @IsOptional() diff --git a/apps/frontend/src/routes/dashboard/settings/index.tsx b/apps/frontend/src/routes/dashboard/settings/index.tsx index 56d1b160..9cd7d4bf 100644 --- a/apps/frontend/src/routes/dashboard/settings/index.tsx +++ b/apps/frontend/src/routes/dashboard/settings/index.tsx @@ -88,7 +88,7 @@ export const updateProfile = globalAction$( message: 'Display name must be less than 25 characters', }), profilePicture: z - .any() + .string() .optional() .transform((value) => { // If value is not base 64 return undefined