Skip to content

Commit

Permalink
fix: Fixed WPP.chat.getVotes function (#969)
Browse files Browse the repository at this point in the history
  • Loading branch information
RustyStriker committed Mar 14, 2023
1 parent 2d532fa commit f303f33
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/chat/functions/getVotes.ts
Expand Up @@ -49,7 +49,7 @@ export async function getVotes(id: string | MsgKey): Promise<{
);
}

const votes = await GetVotes(msgKey);
const votes = await GetVotes([msgKey]);
const returnData = {
msgId: msgKey,
chatId: msgKey.remote,
Expand Down
2 changes: 1 addition & 1 deletion src/whatsapp/functions/getVotes.ts
Expand Up @@ -22,7 +22,7 @@ import { VoteData } from './upsertVotes';
* @whatsapp 816349
* @whatsapp 816349 >= 2.2232.6
*/
export declare function getVotes(id: MsgKey): Promise<VoteData[]>;
export declare function getVotes(id: MsgKey[]): Promise<VoteData[]>;

exportModule(
exports,
Expand Down

0 comments on commit f303f33

Please sign in to comment.