Skip to content

Commit

Permalink
hotfix: update column for sorting by apy
Browse files Browse the repository at this point in the history
  • Loading branch information
gowthamsundaresan committed Dec 18, 2024
1 parent f87ba2a commit 127bbfb
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 127bbfb

Please sign in to comment.