diff --git a/modules/events/marketing_list.service.js b/modules/events/marketing_list.service.js index 8261140..e9019d1 100644 --- a/modules/events/marketing_list.service.js +++ b/modules/events/marketing_list.service.js @@ -20,7 +20,10 @@ function _generateMarketingDTO(dataInscription) { let { event, inscription, user, reservation } = dataInscription; let inscriptionDTO = {}; - //let inscription = dataInscription.inscription ? dataInscription.inscription : dataInscription; + + if (dataInscription) + if (!inscription) + inscription = dataInscription; if (!event) { throw new Error('Falta datos del evento en la inscripción (_generateMarketingDTO)');