Para probar formulario

This commit is contained in:
David Arranz 2025-02-20 11:55:15 +01:00
parent 2ea873e6bd
commit dcfe108a8f
2 changed files with 10 additions and 1 deletions

View File

@ -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", () => {
return {
include: [

View File

@ -107,7 +107,8 @@ routes.get(
}),
(req, res, next) => {
const scopes = ["defaultScope", "withOpenInscriptions"];
//const scopes = ["defaultScope", "withOpenInscriptions"];
const scopes = ["defaultScope", "withSevilla"];
res.locals.v4 = { removeFields: ["partners", "speakers", "details", "multimedias", "type"] };
return eventController.find({ scopes })(req, res, next);
}