From 96a106cff753462eb41aec580e2cd649083b66e4 Mon Sep 17 00:00:00 2001 From: devlikepro Date: Fri, 14 Aug 2026 17:39:23 +0700 Subject: [PATCH] up(WPP): fix promote to admin types --- src/core/engines/wpp/session.wpp.core.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/core/engines/wpp/session.wpp.core.ts b/src/core/engines/wpp/session.wpp.core.ts index c966fec9..1dab6ce3 100644 --- a/src/core/engines/wpp/session.wpp.core.ts +++ b/src/core/engines/wpp/session.wpp.core.ts @@ -1513,14 +1513,15 @@ export class WhatsappSessionWPPCore extends WhatsappSession { } @Activity() - public promoteParticipantsToAdmin( + public async promoteParticipantsToAdmin( id: string, request: ParticipantsRequest, ): Promise { const participants = request.participants.map((participant) => this.ensureSuffix(participant.id), ); - return this.wpp!.promoteParticipant(this.ensureSuffix(id), participants); + await this.wpp!.promoteParticipant(this.ensureSuffix(id), participants); + return true; } @Activity()