From 0ff36cae1aa7913c324dfbf0a3b982afb39a0f5d Mon Sep 17 00:00:00 2001 From: David Arranz Date: Tue, 24 Oct 2023 18:26:09 +0200 Subject: [PATCH] . --- modules/events/marketing_list.service.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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)');