solo inscripciones onsite

This commit is contained in:
David Arranz 2022-06-01 12:13:04 +02:00
parent 58f513f1cc
commit 2d91689f95

View File

@ -52,6 +52,15 @@ const extraMethods = {
},
_getInscriptionByEvent: (eventId) => {
return models.EventInscription.scope("defaultScope").findAll({
where: {
eventId: eventId,
type: ["onsite", "onsite group", "regular", "reservation"],
},
});
},
_getInscriptionOnlineByEvent: (eventId) => {
return models.EventInscription.scope("defaultScope").findAll({
where: {
eventId: eventId,
@ -224,6 +233,12 @@ const extraMethods = {
},
_getInscriptionsExcel: (user, eventId, callback) => {
console.log("DESCARGA EXCEL INSCRIPCIONES TOTALES>>>>>>>> ");
console.log(">>>>>>>>>>>>>>>>>>>><consulta con eventId:", eventId);
models.EventInscription.findAll({
where: {
eventId: eventId,