Skip to content

Commit

Permalink
fix: flip min rent with max rent (#1634)
Browse files Browse the repository at this point in the history
  • Loading branch information
KrissDrawing authored and ludtkemorgan committed Aug 16, 2023
1 parent 8926e09 commit 761b31f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions backend/core/src/shared/query-filter/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,10 +89,10 @@ export function addFilters<FilterParams extends Array<any>, FilterFieldMap>(
addRegionFilter(qb, filterValue)
continue
case ListingFilterKeys.minRent:
addRentFilter(qb, filterValue, "<=", "minRent")
addRentFilter(qb, filterValue, ">=", "minRent")
continue
case ListingFilterKeys.maxRent:
addRentFilter(qb, filterValue, ">=", "maxRent")
addRentFilter(qb, filterValue, "<=", "maxRent")
continue
//custom user filters
case UserFilterKeys.isPortalUser:
Expand Down

0 comments on commit 761b31f

Please sign in to comment.