.
This commit is contained in:
parent
9325a9f6aa
commit
e9387eec1b
@ -19,7 +19,7 @@ const emailHelper = require("../../helpers/mail.helper");
|
||||
*/
|
||||
function _generateMailDTO(dataInscription) {
|
||||
let inscriptionDTO = {};
|
||||
//console.log('*******ENTRO****', dataInscription);
|
||||
console.log("*******ENTRO****", dataInscription);
|
||||
const inscription = dataInscription.inscription ? dataInscription.inscription : dataInscription;
|
||||
const event = dataInscription.event ? dataInscription.event : dataInscription.inscription.event;
|
||||
const reservation = dataInscription.reservation ? dataInscription.reservation : null;
|
||||
@ -29,7 +29,7 @@ function _generateMailDTO(dataInscription) {
|
||||
inscriptionDTO.id = inscription.id;
|
||||
inscriptionDTO.source = inscription.source;
|
||||
inscriptionDTO.event_name = event ? event.name : "N/A";
|
||||
inscriptionDTO.event_venue = event.venue ? event.venue.name : null;
|
||||
inscriptionDTO.event_venue = event && event.venue ? event.venue.name : null;
|
||||
inscriptionDTO.event_date = event ? event.init_date : "N/A";
|
||||
inscriptionDTO.event_marketing_list = event ? event.marketing_list : null;
|
||||
inscriptionDTO.date_inscription = inscription.date;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user