Skip to content

Commit

Permalink
fix: wrong pagination call
Browse files Browse the repository at this point in the history
Signed-off-by: Elias Van Ootegem <[email protected]>
  • Loading branch information
EVODelavega committed Oct 31, 2023
1 parent 57d277c commit 0b19168
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions datanode/sqlstore/referral_sets.go
Original file line number Diff line number Diff line change
Expand Up @@ -257,9 +257,9 @@ func (rs *ReferralSets) ListReferralSetReferees(ctx context.Context, referralSet
hasWhere = true
}

paginate := PaginateQueryWithWhere[entities.ReferralSetRefereeCursor]
paginate := PaginateQuery[entities.ReferralSetRefereeCursor]
if hasWhere {
paginate = PaginateQuery[entities.ReferralSetRefereeCursor]
paginate = PaginateQueryWithWhere[entities.ReferralSetRefereeCursor]
}

query, args, err = paginate(query, args, referralSetRefereeOrdering, pagination)
Expand Down

0 comments on commit 0b19168

Please sign in to comment.