.
This commit is contained in:
parent
a833114060
commit
78473f9604
@ -260,7 +260,7 @@ module.exports = function (sequelize, DataTypes) {
|
||||
Event.addScope('includeInscription', (userId) => {
|
||||
return {
|
||||
include: [
|
||||
{ model: sequelize.models.EventInscription, as: 'inscriptions', required: false, where: {userId: userId} }
|
||||
{ model: sequelize.models.EventInscription, as: 'inscriptions', required: false, where: { userId: userId } }
|
||||
]
|
||||
}
|
||||
});
|
||||
|
||||
Loading…
Reference in New Issue
Block a user