Skip to content

Commit

Permalink
fix: wrong from parameter when checking top users
Browse files Browse the repository at this point in the history
  • Loading branch information
teodorus-nathaniel committed Jan 19, 2024
1 parent 229c78b commit 3fd91f0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/components/utils/datahub/active-staking.ts
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,10 @@ const GET_TOP_USERS = gql`
`
export async function getTopUsers(): Promise<TopUsers> {
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: {
Expand Down

0 comments on commit 3fd91f0

Please sign in to comment.