refactor(places): merge KML/KMZ routes into single POST /import/map endpoint

This commit is contained in:
Yannis Biasutti
2026-04-06 21:35:01 +02:00
parent 8c8bd5bc37
commit aacfd24b58
5 changed files with 21 additions and 47 deletions
@@ -111,9 +111,7 @@ const PlacesSidebar = React.memo(function PlacesSidebar({
setKmlKmzSummary(null)
try {
const result = ext === 'kmz'
? await placesApi.importKmz(tripId, kmlKmzFile)
: await placesApi.importKml(tripId, kmlKmzFile)
const result = await placesApi.importMapFile(tripId, kmlKmzFile)
await loadTrip(tripId)
setKmlKmzSummary(result.summary || null)