up(WPP): fix promote to admin types

This commit is contained in:
devlikepro committed 2026-08-14 17:39:23 +07:00
1 parent 98854e2da3
commit 96a106cff7
1 file changed
+3 -2
+3 -2
View File
@@ -1513,14 +1513,15 @@ export class WhatsappSessionWPPCore extends WhatsappSession {
}
@Activity()
public promoteParticipantsToAdmin(
public async promoteParticipantsToAdmin(
id: string,
request: ParticipantsRequest,
): Promise<boolean> {
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()