Para probar formulario
This commit is contained in:
parent
2ea873e6bd
commit
dcfe108a8f
@ -497,6 +497,14 @@ 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,7 +107,8 @@ 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