Skip to content

Commit

Permalink
Fixed info endpoint method
Browse files Browse the repository at this point in the history
  • Loading branch information
james-pre committed Nov 6, 2023
1 parent 6d2e825 commit 9d84129
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/account.ts
Original file line number Diff line number Diff line change
Expand Up @@ -313,6 +313,6 @@ export async function getAccount(key: string, value?: string): Promise<Account>
[key, value] = ['id', key];
}
checkAccountAttribute(key as keyof FullAccount, value);
const result = await request<AccountResult>('GET', 'account/info', { action: 'get', [key]: value });
const result = await request<AccountResult>('POST', 'account/info', { action: 'get', [key]: value });
return parseAccount(result);
}

0 comments on commit 9d84129

Please sign in to comment.