File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -46,14 +46,14 @@ function getAllLANDWheres(filters: GetNFTsFilters & { rentalAssetsIds?: string[]
46
46
? SQL ` (nft.owner_id = ${ ownerEthereumAddress } OR nft.owner_id = ${ ownerPolygonAddress } ) `
47
47
: null
48
48
const FILTER_BY_MIN_PRICE = minPrice
49
- ? SQL ` (nft.search_order_price >= ${ minPrice } OR (trades .assets -> 'received' ->> 'amount')::numeric(78) >= ${ minPrice } )`
49
+ ? SQL ` (nft.search_order_price >= ${ minPrice } OR (unified_trades .assets -> 'received' ->> 'amount')::numeric(78) >= ${ minPrice } )`
50
50
: null
51
- const FILTER_BY_MIN_TRADE_PRICE = minPrice ? SQL ` (trades .assets -> 'received' ->> 'amount')::numeric(78) >= ${ minPrice } ` : null
51
+ const FILTER_BY_MIN_TRADE_PRICE = minPrice ? SQL ` (unified_trades .assets -> 'received' ->> 'amount')::numeric(78) >= ${ minPrice } ` : null
52
52
const FILTER_BY_MIN_ORDER_PRICE = minPrice ? SQL ` nft.search_order_price >= ${ minPrice } ` : null
53
53
const FILTER_BY_MAX_PRICE = maxPrice
54
- ? SQL ` (nft.search_order_price <= ${ maxPrice } OR (trades .assets -> 'received' ->> 'amount')::numeric(78) <= ${ maxPrice } )`
54
+ ? SQL ` (nft.search_order_price <= ${ maxPrice } OR (unified_trades .assets -> 'received' ->> 'amount')::numeric(78) <= ${ maxPrice } )`
55
55
: null
56
- const FILTER_BY_MAX_TRADE_PRICE = maxPrice ? SQL ` (trades .assets -> 'received' ->> 'amount')::numeric(78) <= ${ maxPrice } ` : null
56
+ const FILTER_BY_MAX_TRADE_PRICE = maxPrice ? SQL ` (unified_trades .assets -> 'received' ->> 'amount')::numeric(78) <= ${ maxPrice } ` : null
57
57
const FILTER_BY_MAX_ORDER_PRICE = maxPrice ? SQL ` nft.search_order_price <= ${ maxPrice } ` : null
58
58
const FILTER_BY_MIN_PLAZA_DISTANCE = minDistanceToPlaza ? SQL ` search_distance_to_plaza >= ${ minDistanceToPlaza } ` : null
59
59
const FILTER_BY_MAX_PLAZA_DISTANCE = maxDistanceToPlaza ? SQL ` search_distance_to_plaza <= ${ maxDistanceToPlaza } ` : null
You can’t perform that action at this time.
0 commit comments