Skip to content

Commit

Permalink
[core] fix /api/messages
Browse files Browse the repository at this point in the history
fix #620
  • Loading branch information
devlikepro committed Oct 31, 2024
1 parent 26e2144 commit 454bda4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/api/chatting.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import {
Put,
Query,
UsePipes,
ValidationPipe,
} from '@nestjs/common';
import { ApiOperation, ApiSecurity, ApiTags } from '@nestjs/swagger';
import { WAHAValidationPipe } from '@waha/nestjs/pipes/WAHAValidationPipe';
Expand Down Expand Up @@ -172,6 +173,7 @@ export class ChattingController {

@Get('/messages')
@ApiOperation({ summary: 'Get messages in a chat' })
@UsePipes(new ValidationPipe({ transform: true, whitelist: true }))
async getMessages(
@Query() query: GetMessageQuery,
@Query() filter: GetChatMessagesFilter,
Expand Down

0 comments on commit 454bda4

Please sign in to comment.