Repository navigation
Guardar la ubicación de los lugares desde el panel - #12
Merged
Merged
Conversation
Agrega Lat y Lng a CrearPoiRequest y ActualizarPoiRequest, los pasa en ContenidoService.CrearPoiAsync y ActualizarPoiAsync, y actualiza los tipos del panel en apps/admin/src/api/schema.d.ts. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01EB4pRoGeNrZBwz45Y4jvo5
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Hasta ahora la base de datos tenía columnas para la latitud y la longitud de cada lugar, pero la API no dejaba llenarlas, así que el panel no podía guardar dónde está cada punto en el mapa. Con este cambio ya se puede, al crear o editar un lugar.
Toqué tres archivos:
No hizo falta migración porque las columnas ya existían. Si se edita un lugar sin mandar coordenadas, quedan vacías, como pasa con MapX y MapY.
Compila sin errores. El schema.d.ts lo actualicé a mano, así que vale la pena regenerarlo para confirmar.
Relacionado con #10