chore: update naming of top maker response

This commit is contained in:
Jack Waller
2024-05-23 16:42:10 +10:00
parent 6b5367916b
commit a2c4dc44fb

View File

@@ -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,
};
})