Updated topMakers to return user accounts in buffer format

This commit is contained in:
Luke Steyn
2024-05-24 16:21:07 +08:00
parent a2c4dc44fb
commit ba79d7dbf2
2 changed files with 31 additions and 1 deletions

View File

@@ -45,6 +45,7 @@ import {
sleep,
validateDlobQuery,
getAccountFromId,
getRawAccountFromId,
} from './utils/utils';
import FEATURE_FLAGS from './utils/featureFlags';
import { getDLOBProviderFromOrderSubscriber } from './dlobProvider';
@@ -572,7 +573,10 @@ const main = async (): Promise<void> => {
res.writeHead(200);
if (accountFlag) {
const topAccounts = await getAccountFromId(userMapClient, topMakers);
const topAccounts = await getRawAccountFromId(
userMapClient,
topMakers
);
res.end(JSON.stringify(topAccounts));
return;
}