Initial commit (#862)

Co-authored-by: Christian Beutel <>
This commit is contained in:
Flomp
2026-03-01 19:34:26 +01:00
committed by GitHub
parent 88aabfa6fd
commit dd77f21d6a

View File

@@ -104,6 +104,10 @@ export async function trail2gpx(trail: Trail, user?: AuthRecord) {
author: { name: trail.author ?? "", email: user?.email ?? "" }
}
if (gpx.trk && gpx.trk.length > 0) {
gpx.trk[0].name = trail.name
}
if (!gpx.wpt) {
gpx.wpt = [];
}