Se añade nombre venue y address
This commit is contained in:
parent
5f5baa5cd6
commit
ab46349032
@ -23,7 +23,7 @@ function _generateMarketingDTO(dataInscription) {
|
|||||||
let inscriptionDTO = {};
|
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
|
//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 (dataInscription) if (!inscription) inscription = dataInscription;
|
||||||
|
|
||||||
if (!event) {
|
if (!event) {
|
||||||
@ -42,6 +42,8 @@ function _generateMarketingDTO(dataInscription) {
|
|||||||
inscriptionDTO.event_marketing_list = event ? event.marketing_list : null;
|
inscriptionDTO.event_marketing_list = event ? event.marketing_list : null;
|
||||||
inscriptionDTO.event_country = event ? event.location.country : null;
|
inscriptionDTO.event_country = event ? event.location.country : null;
|
||||||
inscriptionDTO.event_city = event ? event.location.city : 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.date_inscription = inscription.date;
|
||||||
inscriptionDTO.code_ticket = inscription.code_ticket;
|
inscriptionDTO.code_ticket = inscription.code_ticket;
|
||||||
inscriptionDTO.validated = inscription.validated;
|
inscriptionDTO.validated = inscription.validated;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user