diff --git a/src/adapters/gitcoin/gitcoinAdapter.ts b/src/adapters/gitcoin/gitcoinAdapter.ts index 09830ea87..380038a01 100644 --- a/src/adapters/gitcoin/gitcoinAdapter.ts +++ b/src/adapters/gitcoin/gitcoinAdapter.ts @@ -43,8 +43,7 @@ export class GitcoinAdapter implements GitcoinAdapterInterface { }, ); return ( - result.data?.details?.models?.ethereum_activity?.score || - result.data?.details?.models?.aggregate?.score + result.data?.details?.models?.ethereum_activity?.score ); } catch (e) { logger.error('getUserAnalysisScore error', e); diff --git a/src/services/cronJobs/syncUsersModelScore.ts b/src/services/cronJobs/syncUsersModelScore.ts index 7f5a51ccf..55a0d2fcb 100644 --- a/src/services/cronJobs/syncUsersModelScore.ts +++ b/src/services/cronJobs/syncUsersModelScore.ts @@ -44,10 +44,9 @@ export const updateUsersWithoutMBDScoreInRound = async () => { const user = await findUserById(userId); logger.debug(`User with ${user?.id} fetched from Db`); if (!user) continue; - - logger.debug(`User with ${user?.id} fetching its score`); + logger.debug(`User ${user.id} with wallet ${user.walletAddress} fetching score`) const userScore = await worker.syncUserScore({ - userWallet: user?.walletAddress, + userWallet: user?.walletAddress?.toLowerCase(), }); logger.debug(`User with ${user?.id} has score of ${userScore}`); if (userScore) {