correction: map over array to convert
This commit is contained in:
@@ -32,7 +32,7 @@ const SearchResultsPage = async ({
|
|||||||
}
|
}
|
||||||
|
|
||||||
const propertiesQueryResults = await Property.find(query).lean();
|
const propertiesQueryResults = await Property.find(query).lean();
|
||||||
const properties = convertToSerializeableObject(propertiesQueryResults);
|
const properties = propertiesQueryResults.map(convertToSerializeableObject);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
|
|||||||
Reference in New Issue
Block a user