From 3fd91f0be1e51d17a5dfb55fe2dc4a79ecaf9529 Mon Sep 17 00:00:00 2001 From: teodorus-nathaniel Date: Fri, 19 Jan 2024 23:57:29 +0700 Subject: [PATCH] fix: wrong from parameter when checking top users --- src/components/utils/datahub/active-staking.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/components/utils/datahub/active-staking.ts b/src/components/utils/datahub/active-staking.ts index 921aadb65..bd670fde8 100644 --- a/src/components/utils/datahub/active-staking.ts +++ b/src/components/utils/datahub/active-staking.ts @@ -293,7 +293,10 @@ const GET_TOP_USERS = gql` ` export async function getTopUsers(): Promise { const now = getDayAndWeekTimestamp().day - const from = dayjs(now).subtract(1, 'day').valueOf().toString() + const from = dayjs(now * 1000) + .subtract(1, 'day') + .valueOf() + .toString() const res = await datahubQueryRequest< { activeStakingStakersRankedBySuperLikesForPeriod: {