From af6d9672f5e9468b36c231610bdd44bbc7f608b1 Mon Sep 17 00:00:00 2001 From: Philipinho <16838612+Philipinho@users.noreply.github.com> Date: Sun, 12 Apr 2026 21:50:36 +0100 Subject: [PATCH] uuid validation --- apps/server/src/core/page/dto/created-by-user.dto.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/server/src/core/page/dto/created-by-user.dto.ts b/apps/server/src/core/page/dto/created-by-user.dto.ts index 23c2b50e..1c5c1292 100644 --- a/apps/server/src/core/page/dto/created-by-user.dto.ts +++ b/apps/server/src/core/page/dto/created-by-user.dto.ts @@ -1,11 +1,11 @@ -import { IsOptional, IsString } from 'class-validator'; +import { IsOptional, IsUUID } from 'class-validator'; export class CreatedByUserDto { @IsOptional() - @IsString() + @IsUUID() userId?: string; @IsOptional() - @IsString() + @IsUUID() spaceId?: string; }