RealEstate included even is price is null.
This commit is contained in:
@@ -63,6 +63,7 @@ const findSearchRequestsForRealEstate = async realEstate => {
|
||||
|
||||
//Attributes are checked separately and included in query only if defined
|
||||
//Price and area should be defined for every property
|
||||
|
||||
if (price) {
|
||||
query.priceMin = {
|
||||
[Op.lte]: price
|
||||
@@ -70,8 +71,6 @@ const findSearchRequestsForRealEstate = async realEstate => {
|
||||
query.priceMax = {
|
||||
[Op.gte]: price
|
||||
};
|
||||
} else {
|
||||
checkForIncompleteWanted = true;
|
||||
}
|
||||
|
||||
if (area) {
|
||||
|
||||
Reference in New Issue
Block a user