Skip to content

Commit

Permalink
Little fix for poi route
Browse files Browse the repository at this point in the history
  • Loading branch information
Kevin Ebsen committed Sep 16, 2023
1 parent 4d58576 commit 6b39223
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Server/src/routes/track.route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ export class TrackRoute {
const pois: POI[] = await database.pois.getAll(trackId)
const ret: z.infer<typeof PointOfInterest>[] = (
await Promise.all(
pois.map(async (poi: POI) => {
pois.flatMap(async (poi: POI) => {
let pos: Feature<Point>
try {
pos = GeoJSONUtils.parseGeoJSONFeaturePoint(poi.position)
Expand Down

0 comments on commit 6b39223

Please sign in to comment.