up(WPP): fix promote to admin types
This commit is contained in:
1 parent
98854e2da3
commit
96a106cff7
1 file changed
+3
-2
@@ -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()
|
||||
|
||||
Reference in new issue
Block a user