New query for search req search.

This commit is contained in:
Naida Vatric
2020-02-21 14:25:10 +01:00
parent 7302edceec
commit 6bad24d735

View File

@@ -35,9 +35,6 @@ const findSearchRequestsForRealEstate = async realEstate => {
floor
} = realEstate;
//Debugging log
console.log("New realestate:", realEstate.dataValues);
if (!locationLat || !locationLong) {
return [];
}
@@ -328,19 +325,6 @@ const findSearchRequestsForRealEstate = async realEstate => {
};
}
//Debugging logs
console.log("Query for search of req:", query);
console.log("Price", priceQuery);
console.log("Area", areaQuery);
console.log("Garden", gardenSizeQuery);
console.log("Number of rooms", numberOfRoomsQuery);
console.log("Number offloors", numberOfFloorsQuery);
console.log("Floor", floorQuery);
console.log("Balcony", balconyQuery);
console.log("New building", newBuildingQuery);
console.log("Elevator", elevatorQuery);
//
return await db.SearchRequest.findAll({
where: query
});