diff --git a/src/chat/functions/getVotes.ts b/src/chat/functions/getVotes.ts index 4c7983482e..de8f88cfc0 100644 --- a/src/chat/functions/getVotes.ts +++ b/src/chat/functions/getVotes.ts @@ -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, diff --git a/src/whatsapp/functions/getVotes.ts b/src/whatsapp/functions/getVotes.ts index 3f8c3e0b52..5122273b10 100644 --- a/src/whatsapp/functions/getVotes.ts +++ b/src/whatsapp/functions/getVotes.ts @@ -22,7 +22,7 @@ import { VoteData } from './upsertVotes'; * @whatsapp 816349 * @whatsapp 816349 >= 2.2232.6 */ -export declare function getVotes(id: MsgKey): Promise; +export declare function getVotes(id: MsgKey[]): Promise; exportModule( exports,