fix: enum stop_type required uppercase values in supabase
This commit is contained in:
@ -264,7 +264,7 @@ async function initRouteMap() {
|
||||
name,
|
||||
latitude: lat,
|
||||
longitude: lng,
|
||||
stop_type: 'regular',
|
||||
stop_type: 'REGULAR',
|
||||
has_shelter: false,
|
||||
has_seating: false,
|
||||
is_accessible: true,
|
||||
@ -274,8 +274,9 @@ async function initRouteMap() {
|
||||
allStops.value = await busStopsService.getAllBusStops()
|
||||
// Add to current route
|
||||
await addExistingStop(newStop.id)
|
||||
} catch (err) {
|
||||
alert('Error creando parada')
|
||||
} catch (err: any) {
|
||||
console.error("Error creating map stop:", err)
|
||||
alert('Error creando parada: ' + (err.message || 'Error desconocido'))
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user