Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions apps/trending-challenge-rewards/src/queries.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,10 @@ export const getChallengesDisbursementsUserbanks = async (
'u.specifier',
'c.slot'
)
.leftJoin('v_challenge_disbursements as c', function () {
// Slot comes straight from sol_reward_disbursements (one row per
// challenge_id+specifier); the v_challenge_disbursements compatibility
// view was dropped in api migration 0212.
.leftJoin('sol_reward_disbursements as c', function () {
this.on('u.specifier', '=', 'c.specifier').andOn(
'u.challenge_id',
'=',
Expand Down Expand Up @@ -66,7 +69,10 @@ export const getChallengesDisbursementsUserbanksFriendly = async (
'u.completed_blocknumber',
'c.slot'
)
.leftJoin('v_challenge_disbursements as c', function () {
// Slot comes straight from sol_reward_disbursements (one row per
// challenge_id+specifier); the v_challenge_disbursements compatibility
// view was dropped in api migration 0212.
.leftJoin('sol_reward_disbursements as c', function () {
this.on('u.specifier', '=', 'c.specifier').andOn(
'u.challenge_id',
'=',
Expand Down
Loading