This commit is contained in:
David Arranz 2019-07-25 20:51:46 +02:00
parent 7ae05f30c4
commit 6e9372d23b

View File

@ -30,6 +30,11 @@ const extraMethods = {
where: {
userId: userId
},
include: [{
model: models.Event,
as: 'event',
attributes: ['name', 'description', 'init_date', 'campaign_text'],
}],
})
},