.
This commit is contained in:
parent
49043d0f3e
commit
2f5eff0c0f
@ -35,7 +35,7 @@ function sendTicket(header, values) {
|
|||||||
},
|
},
|
||||||
],*/
|
],*/
|
||||||
};
|
};
|
||||||
console.log('>>>>>>>>>>>>>>>>>>><<SendTicket>>>', body);
|
//console.log('>>>>>>>>>>>>>>>>>>><<SendTicket>>>', body);
|
||||||
return sendinblueHelper.sendEmailTransactional(header, body);
|
return sendinblueHelper.sendEmailTransactional(header, body);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -497,14 +497,6 @@ module.exports = function (sequelize, DataTypes) {
|
|||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
Event.addScope("withSevilla", {
|
|
||||||
where: {
|
|
||||||
id: {
|
|
||||||
[Sequelize.Op.eq]: "f1aa418a-d196-11ef-8ecf-000c29a89113",
|
|
||||||
},
|
|
||||||
},
|
|
||||||
});
|
|
||||||
|
|
||||||
Event.addScope("CitiesOfEvents", () => {
|
Event.addScope("CitiesOfEvents", () => {
|
||||||
return {
|
return {
|
||||||
include: [
|
include: [
|
||||||
|
|||||||
@ -107,8 +107,7 @@ routes.get(
|
|||||||
}),
|
}),
|
||||||
|
|
||||||
(req, res, next) => {
|
(req, res, next) => {
|
||||||
//const scopes = ["defaultScope", "withOpenInscriptions"];
|
const scopes = ["defaultScope", "withOpenInscriptions"];
|
||||||
const scopes = ["defaultScope", "withSevilla"];
|
|
||||||
res.locals.v4 = { removeFields: ["partners", "speakers", "details", "multimedias", "type"] };
|
res.locals.v4 = { removeFields: ["partners", "speakers", "details", "multimedias", "type"] };
|
||||||
return eventController.find({ scopes })(req, res, next);
|
return eventController.find({ scopes })(req, res, next);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user