chore: update naming of top maker response
This commit is contained in:
@@ -346,18 +346,18 @@ export const getAccountFromId = async (
|
|||||||
topMakers: string[]
|
topMakers: string[]
|
||||||
) => {
|
) => {
|
||||||
return Promise.all(
|
return Promise.all(
|
||||||
topMakers.map(async (accountId) => {
|
topMakers.map(async (userAccountPubKey) => {
|
||||||
const userAccountEncoded = await userMapClient.getRaw(accountId);
|
const userAccountEncoded = await userMapClient.getRaw(userAccountPubKey);
|
||||||
if (userAccountEncoded) {
|
if (userAccountEncoded) {
|
||||||
return {
|
return {
|
||||||
accountId,
|
userAccountPubKey,
|
||||||
account: decodeUser(
|
account: decodeUser(
|
||||||
Buffer.from(userAccountEncoded.split('::')[1], 'base64')
|
Buffer.from(userAccountEncoded.split('::')[1], 'base64')
|
||||||
),
|
),
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
return {
|
return {
|
||||||
accountId,
|
userAccountPubKey,
|
||||||
account: null,
|
account: null,
|
||||||
};
|
};
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user