diff --git a/package-lock.json b/package-lock.json index 0537b894c..dd3a6ad55 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "giveth-graphql-api", - "version": "1.16.0", + "version": "1.16.1", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "giveth-graphql-api", - "version": "1.16.0", + "version": "1.16.1", "hasInstallScript": true, "license": "ISC", "dependencies": { diff --git a/package.json b/package.json index 08ba3b1d9..51fef1546 100644 --- a/package.json +++ b/package.json @@ -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": { diff --git a/src/adapters/givPowerBalanceAggregator/givPowerBalanceAggregatorAdapter.ts b/src/adapters/givPowerBalanceAggregator/givPowerBalanceAggregatorAdapter.ts index 9d9ea82df..75041c204 100644 --- a/src/adapters/givPowerBalanceAggregator/givPowerBalanceAggregatorAdapter.ts +++ b/src/adapters/givPowerBalanceAggregator/givPowerBalanceAggregatorAdapter.ts @@ -66,11 +66,15 @@ export class GivPowerBalanceAggregatorAdapter async getLatestBalances( params: LatestBalanceInputParams, ): Promise { + 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);