From 4cb120879458e38a8a8455e6a9159a72fc7b38c3 Mon Sep 17 00:00:00 2001 From: Lamarcke Date: Thu, 29 Feb 2024 23:51:17 -0300 Subject: [PATCH] - fixed bug in follower register validation --- src/follow/dto/follow-register.dto.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/follow/dto/follow-register.dto.ts b/src/follow/dto/follow-register.dto.ts index e294da8..d735925 100644 --- a/src/follow/dto/follow-register.dto.ts +++ b/src/follow/dto/follow-register.dto.ts @@ -1,9 +1,8 @@ -import { IsNotEmpty, IsString, Max, Min } from "class-validator"; +import { IsNotEmpty, IsString, Length } from "class-validator"; export class FollowRegisterDto { @IsNotEmpty() @IsString() - @Min(36) - @Max(36) + @Length(36) followedUserId: string; }