We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 5a23bb8 + 4cb1208 commit a3ca1e3Copy full SHA for a3ca1e3
src/follow/dto/follow-register.dto.ts
@@ -1,9 +1,8 @@
1
-import { IsNotEmpty, IsString, Max, Min } from "class-validator";
+import { IsNotEmpty, IsString, Length } from "class-validator";
2
3
export class FollowRegisterDto {
4
@IsNotEmpty()
5
@IsString()
6
- @Min(36)
7
- @Max(36)
+ @Length(36)
8
followedUserId: string;
9
}
0 commit comments