Skip to content

Commit

Permalink
Merge pull request #1113 from Giveth/master
Browse files Browse the repository at this point in the history
Release 1.16.1
  • Loading branch information
aminlatifi authored Sep 3, 2023
2 parents 77b526f + 285366b commit 2e384c3
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 7 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "giveth-graphql-api",
"version": "1.16.0",
"version": "1.16.1",
"description": "Backend GraphQL server for Giveth originally forked from Topia",
"main": "./dist/index.js",
"dependencies": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,11 +66,15 @@ export class GivPowerBalanceAggregatorAdapter
async getLatestBalances(
params: LatestBalanceInputParams,
): Promise<BalanceResponse[]> {
const data = {
network: params.network,
networks: params.networks,
addresses: params.addresses.join(','),
};
try {
const response = await axios.post(
`${this.baseUrl}/power-balance`,
params,
);
const response = await axios.get(`${this.baseUrl}/power-balance`, {
params: data,
});
return response.data.map(balance => formatResponse(balance));
} catch (e) {
logger.error('getLatestBalanceOfAnAddress >> error', e);
Expand Down

0 comments on commit 2e384c3

Please sign in to comment.