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