From a2c4dc44fbd31ccced3e8be79e0f4aedc3e383cb Mon Sep 17 00:00:00 2001 From: Jack Waller Date: Thu, 23 May 2024 16:42:10 +1000 Subject: [PATCH] chore: update naming of top maker response --- src/utils/utils.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/utils/utils.ts b/src/utils/utils.ts index e5dd5db..b82d743 100644 --- a/src/utils/utils.ts +++ b/src/utils/utils.ts @@ -346,18 +346,18 @@ export const getAccountFromId = async ( topMakers: string[] ) => { return Promise.all( - topMakers.map(async (accountId) => { - const userAccountEncoded = await userMapClient.getRaw(accountId); + topMakers.map(async (userAccountPubKey) => { + const userAccountEncoded = await userMapClient.getRaw(userAccountPubKey); if (userAccountEncoded) { return { - accountId, + userAccountPubKey, account: decodeUser( Buffer.from(userAccountEncoded.split('::')[1], 'base64') ), }; } return { - accountId, + userAccountPubKey, account: null, }; })