RealEstate included even is price is null.

This commit is contained in:
Naida Vatric
2019-12-18 21:49:12 +01:00
parent 251437f815
commit bee390aa15
2 changed files with 8 additions and 4 deletions

View File

@@ -135,8 +135,13 @@ const findRealEstatesForSearchRequest = async (searchRequest, maxResults) => {
adType,
realEstateType,
price: {
[Op.lte]: priceMax,
[Op.gte]: priceMin
[Op.or]: {
[Op.and]: {
[Op.lte]: priceMax,
[Op.gte]: priceMin
},
[Op.is]: null
}
},
area: {
[Op.lte]: sizeMax,