diff --git a/Server/src/routes/track.route.ts b/Server/src/routes/track.route.ts index 79333cb..96290f6 100644 --- a/Server/src/routes/track.route.ts +++ b/Server/src/routes/track.route.ts @@ -237,7 +237,7 @@ export class TrackRoute { const pois: POI[] = await database.pois.getAll(trackId) const ret: z.infer[] = ( await Promise.all( - pois.map(async (poi: POI) => { + pois.flatMap(async (poi: POI) => { let pos: Feature try { pos = GeoJSONUtils.parseGeoJSONFeaturePoint(poi.position)