fix(SW-3203): Added property id to pointOfInterestSchema to handle identical names
Approved-by: Matilda Landström Approved-by: Chuma Mcphoy (We Ahead)
This commit is contained in:
@@ -16,6 +16,7 @@ export const pointOfInterestSchema = z
|
||||
name: nullableStringValidator,
|
||||
})
|
||||
.transform((poi) => ({
|
||||
id: `${poi.name}-${poi.location.latitude}-${poi.location.longitude}`,
|
||||
categoryName: poi.category.name,
|
||||
coordinates: {
|
||||
lat: poi.location.latitude,
|
||||
|
||||
Reference in New Issue
Block a user