From 6b39223ec35dd64f9bb3c8a33307508482356410 Mon Sep 17 00:00:00 2001 From: Kevin Ebsen Date: Sat, 16 Sep 2023 20:57:40 +0200 Subject: [PATCH] Little fix for poi route --- Server/src/routes/track.route.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)