Tested both ways for realestate and search req filters.
This commit is contained in:
@@ -104,9 +104,6 @@ const findRealEstatesForSearchRequest = async (searchRequest, maxResults) => {
|
||||
accessRoadType
|
||||
} = searchRequest;
|
||||
|
||||
// ++ testing
|
||||
console.log("SearchRequest za koji trazimo:", searchRequest);
|
||||
|
||||
//Needed for defining which attribute should exist or not
|
||||
const realEstateTypeObject = AD_CATEGORY[realEstateType];
|
||||
|
||||
@@ -318,12 +315,6 @@ const findRealEstatesForSearchRequest = async (searchRequest, maxResults) => {
|
||||
|
||||
const order = [["updatedAt", "desc"]];
|
||||
|
||||
//++
|
||||
console.log(
|
||||
"Query user to find real estates:",
|
||||
includeIncompleteAds ? queryIncludeIncomplete : query
|
||||
);
|
||||
|
||||
return db.RealEstate.findAll({
|
||||
where: includeIncompleteAds ? queryIncludeIncomplete : query,
|
||||
limit: maxResults,
|
||||
|
||||
@@ -423,9 +423,6 @@ const findSearchRequestsForRealEstate = async realEstate => {
|
||||
};
|
||||
}
|
||||
|
||||
//++
|
||||
console.log("Query koji koristimo:", query);
|
||||
//
|
||||
return await db.SearchRequest.findAll({
|
||||
where: query
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user