Skip to content

Commit

Permalink
Merge pull request #179 from dappforce/fix/top-users
Browse files Browse the repository at this point in the history
Fix wrong from parameter when checking top users
  • Loading branch information
olehmell authored Jan 19, 2024
2 parents 229c78b + 3fd91f0 commit 36d8154
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 36d8154

Please sign in to comment.