From d5fa9f8d72f76949114e6d2571f83e7cfeb2e93a Mon Sep 17 00:00:00 2001 From: devlikepro Date: Tue, 3 Sep 2024 18:40:48 +0700 Subject: [PATCH] [core] swagger presence --- src/api/presence.controller.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/api/presence.controller.ts b/src/api/presence.controller.ts index fc98190c..a6d001a1 100644 --- a/src/api/presence.controller.ts +++ b/src/api/presence.controller.ts @@ -7,6 +7,7 @@ import { Post, } from '@nestjs/common'; import { ApiOperation, ApiSecurity, ApiTags } from '@nestjs/swagger'; +import { ChatIdApiParam } from '@waha/nestjs/params/ChatIdApiParam'; import { SessionApiParam, SessionParam, @@ -67,6 +68,7 @@ export class PresenceController { @Get(':chatId') @SessionApiParam + @ChatIdApiParam @ApiOperation({ summary: "Get the presence for the chat id. If it hasn't been subscribed - it also subscribes to it.", @@ -80,6 +82,7 @@ export class PresenceController { @Post(':chatId/subscribe') @SessionApiParam + @ChatIdApiParam @ApiOperation({ summary: 'Subscribe to presence events for the chat.', })