a
This commit is contained in:
parent
c52a2b7b14
commit
c7938219f7
@ -448,9 +448,13 @@ console.log('voy a crearrrrrr la inscripcion');
|
|||||||
|
|
||||||
console.log('member a añadir a mailchimp y envio correo');
|
console.log('member a añadir a mailchimp y envio correo');
|
||||||
console.log(member);
|
console.log(member);
|
||||||
|
try
|
||||||
member.marketing_memberId = await eventInscriptionService._addMember(marketingListOfInscription, member);
|
{
|
||||||
eventInscriptionService._updateMarketingMemberOfInscription(dataInscription.inscription.id, member.marketing_memberId);
|
member.marketing_memberId = await eventInscriptionService._addMember(marketingListOfInscription, member);
|
||||||
|
eventInscriptionService._updateMarketingMemberOfInscription(dataInscription.inscription.id, member.marketing_memberId);
|
||||||
|
} catch (error) {
|
||||||
|
console.log('No se ha podido añadir email a mailchimp');
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
//MADAMOS MAIL CON LA ENTRADA
|
//MADAMOS MAIL CON LA ENTRADA
|
||||||
@ -478,12 +482,19 @@ console.log(member);
|
|||||||
eventName: dataInscription.event.name,
|
eventName: dataInscription.event.name,
|
||||||
dateInscription: moment(dataInscription.event.init_date).format('D [de] MMMM [de] YYYY'),
|
dateInscription: moment(dataInscription.event.init_date).format('D [de] MMMM [de] YYYY'),
|
||||||
}
|
}
|
||||||
|
|
||||||
console.log('Mandamos mail con entrada>>>>>>>>>>>>>>>>>>>>>>>>>>>');
|
console.log('Mandamos mail con entrada>>>>>>>>>>>>>>>>>>>>>>>>>>>');
|
||||||
console.log(headerMail, bodyMail);
|
console.log(headerMail, bodyMail);
|
||||||
if (member.validated)
|
|
||||||
emailHelper.sendTicket(headerMail, bodyMail)
|
try
|
||||||
else
|
{
|
||||||
emailHelper.sendListaEspera(headerMail, bodyMail);
|
if (member.validated)
|
||||||
|
emailHelper.sendTicket(headerMail, bodyMail)
|
||||||
|
else
|
||||||
|
emailHelper.sendListaEspera(headerMail, bodyMail);
|
||||||
|
} catch (error) {
|
||||||
|
console.log('No se ha podido mandar email con entrada');
|
||||||
|
};
|
||||||
|
|
||||||
return handleResultResponse(await dataInscription.inscription.toJSON(), null, params, res, httpStatus.CREATED)
|
return handleResultResponse(await dataInscription.inscription.toJSON(), null, params, res, httpStatus.CREATED)
|
||||||
},
|
},
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user