a
This commit is contained in:
parent
f2ec486fd4
commit
5e759d63a8
@ -63,6 +63,25 @@ const extraMethods = {
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
||||||
|
_getInscriptionByEventAndValidated: (eventId, validated) => {
|
||||||
|
return models.EventInscription.scope('defaultScope').findAll({
|
||||||
|
where: {
|
||||||
|
validated: validated,
|
||||||
|
eventId: eventId,
|
||||||
|
},
|
||||||
|
})
|
||||||
|
},
|
||||||
|
|
||||||
|
_getInscriptionByEventFromPartner: (eventId) => {
|
||||||
|
return models.EventInscription.scope('defaultScope').findAll({
|
||||||
|
where: {
|
||||||
|
eventId: eventId,
|
||||||
|
reservationId: { [Sequelize.Op.ne]: null },
|
||||||
|
},
|
||||||
|
})
|
||||||
|
},
|
||||||
|
|
||||||
|
|
||||||
_getInscriptionsUser: (userId) => {
|
_getInscriptionsUser: (userId) => {
|
||||||
return models.EventInscription.scope('includeEventAndVenue', 'includeReservation').findAll({
|
return models.EventInscription.scope('includeEventAndVenue', 'includeReservation').findAll({
|
||||||
attributes: {
|
attributes: {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user