.
This commit is contained in:
parent
c9a5051e14
commit
f14b6c0eb1
@ -117,7 +117,6 @@ const extraMethods = {
|
|||||||
|
|
||||||
//solo se llama desde formualario WEB nuevo
|
//solo se llama desde formualario WEB nuevo
|
||||||
_getOrCreateUserWEBV4: async (dataUser, req) => {
|
_getOrCreateUserWEBV4: async (dataUser, req) => {
|
||||||
console.log('_getOrCreateUserWEBV4>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>', dataUser);
|
|
||||||
let result = null;
|
let result = null;
|
||||||
dataUser = {
|
dataUser = {
|
||||||
name: req.body.name ? req.body.name : null,
|
name: req.body.name ? req.body.name : null,
|
||||||
@ -130,8 +129,7 @@ const extraMethods = {
|
|||||||
//entityLevel: null,
|
//entityLevel: null,
|
||||||
userResult: null,
|
userResult: null,
|
||||||
};
|
};
|
||||||
|
// console.log('_getOrCreateUserWEBV4>22222222>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>', dataUser);
|
||||||
console.log('_getOrCreateUserWEBV4>22222222>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>', dataUser);
|
|
||||||
|
|
||||||
if (dataUser.userResult) {
|
if (dataUser.userResult) {
|
||||||
result = { user: dataUser.userResult, isCreated: false };
|
result = { user: dataUser.userResult, isCreated: false };
|
||||||
|
|||||||
@ -19,7 +19,7 @@ const emailHelper = require("../../helpers/mail.helper");
|
|||||||
*/
|
*/
|
||||||
function _generateMailDTO(dataInscription) {
|
function _generateMailDTO(dataInscription) {
|
||||||
let inscriptionDTO = {};
|
let inscriptionDTO = {};
|
||||||
console.log("*******ENTRO****", dataInscription);
|
// console.log("*******ENTRO****", dataInscription);
|
||||||
const inscription = dataInscription.inscription ? dataInscription.inscription : dataInscription;
|
const inscription = dataInscription.inscription ? dataInscription.inscription : dataInscription;
|
||||||
const event = dataInscription.event ? dataInscription.event : dataInscription.inscription.event;
|
const event = dataInscription.event ? dataInscription.event : dataInscription.inscription.event;
|
||||||
const reservation = dataInscription.reservation ? dataInscription.reservation : null;
|
const reservation = dataInscription.reservation ? dataInscription.reservation : null;
|
||||||
@ -56,7 +56,7 @@ function _generateMailDTO(dataInscription) {
|
|||||||
reservation && reservation.Entity ? reservation.Entity.name : user.Entity ? user.Entity.name : user.entityId;
|
reservation && reservation.Entity ? reservation.Entity.name : user.Entity ? user.Entity.name : user.entityId;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
console.log("*******SALGO****", inscriptionDTO);
|
//console.log("*******SALGO****", inscriptionDTO);
|
||||||
return inscriptionDTO;
|
return inscriptionDTO;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user