diff --git a/server/src/nest/tours/tour-gpx-export.helpers.ts b/server/src/nest/tours/tour-gpx-export.helpers.ts index 4fa9e4ba1..d065e95a2 100644 --- a/server/src/nest/tours/tour-gpx-export.helpers.ts +++ b/server/src/nest/tours/tour-gpx-export.helpers.ts @@ -17,7 +17,11 @@ const BIKE_ACTIVITY: Record = { }; /** The activity a tour's track names in GPX: a paddle tour its boat, a bike tour its profile, a hike hiking; whatever is missing falls back to the plainest. */ -export function gpxActivityOf(tour: { tour_type: string; boat_type?: string | null; bike_profile?: string | null }): string { +export function gpxActivityOf(tour: { + tour_type: string; + boat_type?: string | null; + bike_profile?: string | null; +}): string { const { tour_type: type, boat_type: boat, bike_profile: bike } = tour; if (type === 'kayak') return PADDLE_ACTIVITY[(boat ?? 'other') as PaddleBoatType] ?? PADDLE_ACTIVITY.other; if (type === 'bike') return BIKE_ACTIVITY[(bike ?? 'touring') as BikeProfile] ?? BIKE_ACTIVITY.touring;