a
This commit is contained in:
parent
6203caf9a0
commit
3da7a6ddbb
@ -99,7 +99,13 @@ module.exports = function (sequelize, DataTypes) {
|
||||
defaultScope: {
|
||||
where: {
|
||||
state: 'publish'
|
||||
}
|
||||
},
|
||||
include: [{
|
||||
model: sequelize.models.EventType,
|
||||
as: 'type',
|
||||
attributes: ['name', 'title'],
|
||||
}]
|
||||
|
||||
},
|
||||
});
|
||||
|
||||
|
||||
@ -72,7 +72,7 @@ routes.get('/events/:id',
|
||||
invalidFields: generalInvalidFields
|
||||
}),
|
||||
eventController.findOne({
|
||||
scopes: ['defaultScope', 'includeVenue', 'includeMultimedias', 'includeSpeakers'],
|
||||
scopes: ['defaultScope', 'includeVenue', 'includeMultimedias'],
|
||||
}),
|
||||
);
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user