Skip to content

Commit

Permalink
Merge pull request #1735 from Giveth/gitcoin-API-update-to-old
Browse files Browse the repository at this point in the history
gitcoin API update
  • Loading branch information
RamRamez authored Jul 29, 2024
2 parents e957f61 + 7c1d994 commit 4508e1c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/adapters/gitcoin/gitcoinAdapter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,14 @@ export class GitcoinAdapter implements GitcoinAdapterInterface {
async getUserAnalysisScore(address: string): Promise<number> {
try {
const result = await axios.get(
`${GITCOIN_API_BASE_URL}/passport/analysis/${address.toLowerCase()}`,
`${GITCOIN_API_BASE_URL}/passport/analysis/${address.toLowerCase()}?model_list=ethereum_activity`,
{
headers: {
'X-API-KEY': this.GitcoinApiKey,
},
},
);
return result.data?.details?.models?.aggregate?.score;
return result.data?.details?.models?.ethereum_activity?.score;
} catch (e) {
logger.error('getUserAnalysisScore error', e);
throw new Error(
Expand Down

0 comments on commit 4508e1c

Please sign in to comment.