correction: map over array to convert

This commit is contained in:
Will Adams
2024-08-31 12:06:29 +01:00
parent 2580d7d2b4
commit be5ede92bd
+1 -1
View File
@@ -32,7 +32,7 @@ const SearchResultsPage = async ({
}
const propertiesQueryResults = await Property.find(query).lean();
const properties = convertToSerializeableObject(propertiesQueryResults);
const properties = propertiesQueryResults.map(convertToSerializeableObject);
return (
<>