From c6284eb994a1bcf8086d166e76cb21459361d1d5 Mon Sep 17 00:00:00 2001 From: devlikepro Date: Thu, 31 Oct 2024 16:45:15 +0700 Subject: [PATCH] [core] fix /api/messages fix #622 --- src/structures/chatting.dto.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/structures/chatting.dto.ts b/src/structures/chatting.dto.ts index 2c10e46e..e689025b 100644 --- a/src/structures/chatting.dto.ts +++ b/src/structures/chatting.dto.ts @@ -49,9 +49,11 @@ export class ChatQuery extends SessionQuery { export class GetMessageQuery extends GetChatMessagesQuery { @IsNotEmpty() + @IsString() session: string = WHATSAPP_DEFAULT_SESSION_NAME; @ChatIdProperty() + @IsString() chatId: string; }