From 45b030caa5d4c4afc764eb7e0ef5b3647f9b13d1 Mon Sep 17 00:00:00 2001 From: Carlos Date: Mon, 22 Apr 2024 20:41:24 -0500 Subject: [PATCH] refresh and fetch user address separately --- src/resolvers/userResolver.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/resolvers/userResolver.ts b/src/resolvers/userResolver.ts index bbec66ecd..4a56ae2a6 100644 --- a/src/resolvers/userResolver.ts +++ b/src/resolvers/userResolver.ts @@ -92,9 +92,14 @@ export class UserResolver { if (!foundUser) return; try { - const passportScore = await getGitcoinAdapter().submitPassport({ + // Refresh user score + await getGitcoinAdapter().submitPassport({ address, }); + + const passportScore = + await getGitcoinAdapter().getWalletAddressScore(address); + const passportStamps = await getGitcoinAdapter().getPassportStamps(address);