Skip to content

Commit

Permalink
Merge pull request #307 from EigenExplorer/hotfix/sort-by-apy
Browse files Browse the repository at this point in the history
[Hotfix] Update column for sorting by APY
  • Loading branch information
uditdc authored Dec 18, 2024
2 parents 2e1fec2 + 127bbfb commit fe027c7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/api/src/routes/avs/avsController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ export async function getAllAVS(req: Request, res: Response) {
: sortByTvl
? { field: 'tvlEth', order: sortByTvl }
: sortByApy
? { field: 'apy', order: sortByApy }
? { field: 'maxApy', order: sortByApy }
: null

// Setup search query
Expand Down
2 changes: 1 addition & 1 deletion packages/api/src/routes/operators/operatorController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ export async function getAllOperators(req: Request, res: Response) {
: sortByTvl
? { field: 'tvlEth', order: sortByTvl }
: sortByApy
? { field: 'apy', order: sortByApy }
? { field: 'maxApy', order: sortByApy }
: null

// Fetch records and apply search/sort
Expand Down

0 comments on commit fe027c7

Please sign in to comment.