Logs for query check.

This commit is contained in:
Naida Vatric
2020-02-17 23:24:55 +01:00
parent df2a962d0f
commit bd33a6b80e

View File

@@ -35,6 +35,9 @@ const findSearchRequestsForRealEstate = async realEstate => {
floor
} = realEstate;
//
console.log("New realestate:", realEstate);
if (!locationLat || !locationLong) {
return [];
}
@@ -451,6 +454,9 @@ const findSearchRequestsForRealEstate = async realEstate => {
};
}
//
console.log("Query for search of req:", query);
return await db.SearchRequest.findAll({
where: query
});