Add currency to price filters #78

Merged
RabbIT09-n merged 24 commits from add-currency-to-price-filters into master 2020-01-07 00:09:41 +01:00
Showing only changes of commit e6e1688a49 - Show all commits

View File

@@ -5,8 +5,11 @@ const Op = sequelize.Op;
const getSearchRequest = async searchRequestId => {
try {
console.log("test");
return await db.SearchRequest.findByPk(searchRequestId);
} catch (error) {
console.log("searchrequest.js",error);
return null;
}
};
@@ -22,7 +25,16 @@ const findSearchRequestsForRealEstate = async realEstate => {
adType,
realEstateType,
locationLat,
locationLong
locationLong,
//
accessRoadType,
balcony,
newBuilding,
elevator,
gardenSize,
numberOfRooms,
numberOfFloors,
floor
} = realEstate;
if (!locationLat || !locationLong) {