Fix comment

This commit is contained in:
Philipinho
2024-04-04 21:24:55 +01:00
parent 7d14a353cc
commit 409850b22a
6 changed files with 68 additions and 28 deletions
@@ -1,11 +1,11 @@
import { IsUUID } from 'class-validator';
export class CommentsInput {
export class PageIdDto {
@IsUUID()
pageId: string;
}
export class SingleCommentInput {
export class CommentIdDto {
@IsUUID()
id: string;
commentId: string;
}
@@ -1,10 +1,6 @@
import { IsJSON, IsOptional, IsString, IsUUID } from 'class-validator';
export class CreateCommentDto {
@IsOptional()
@IsUUID()
id?: string;
@IsUUID()
pageId: string;
@@ -2,7 +2,7 @@ import { IsJSON, IsUUID } from 'class-validator';
export class UpdateCommentDto {
@IsUUID()
id: string;
commentId: string;
@IsJSON()
content: any;