Se añade nombre venue y address

This commit is contained in:
David Arranz 2026-09-04 10:49:41 +02:00
parent 5f5baa5cd6
commit ab46349032

View File

@ -23,7 +23,7 @@ function _generateMarketingDTO(dataInscription) {
let inscriptionDTO = {};
//En el caso de generar el MarketingDTO para el ticket de la APP, fallaba porque el propio dataInscription, es la inscription y de el cuelgan user, event y reservation
//Sin embargo cuando se llama desde addMarketingList la inscription cualga de dataInscripcion como el resto de elementos
//Sin embargo cuando se llama desde addMarketingList la inscription cuelga de dataInscripcion como el resto de elementos
if (dataInscription) if (!inscription) inscription = dataInscription;
if (!event) {
@ -42,6 +42,8 @@ function _generateMarketingDTO(dataInscription) {
inscriptionDTO.event_marketing_list = event ? event.marketing_list : null;
inscriptionDTO.event_country = event ? event.location.country : null;
inscriptionDTO.event_city = event ? event.location.city : null;
inscriptionDTO.event_venue = event ? event.venue.name : null;
inscriptionDTO.event_address = event ? event.venue.address : null;
inscriptionDTO.date_inscription = inscription.date;
inscriptionDTO.code_ticket = inscription.code_ticket;
inscriptionDTO.validated = inscription.validated;