solo inscripciones onsite
This commit is contained in:
parent
58f513f1cc
commit
2d91689f95
@ -52,6 +52,15 @@ const extraMethods = {
|
|||||||
},
|
},
|
||||||
|
|
||||||
_getInscriptionByEvent: (eventId) => {
|
_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({
|
return models.EventInscription.scope("defaultScope").findAll({
|
||||||
where: {
|
where: {
|
||||||
eventId: eventId,
|
eventId: eventId,
|
||||||
@ -224,6 +233,12 @@ const extraMethods = {
|
|||||||
},
|
},
|
||||||
|
|
||||||
_getInscriptionsExcel: (user, eventId, callback) => {
|
_getInscriptionsExcel: (user, eventId, callback) => {
|
||||||
|
|
||||||
|
console.log("DESCARGA EXCEL INSCRIPCIONES TOTALES>>>>>>>> ");
|
||||||
|
console.log(">>>>>>>>>>>>>>>>>>>><consulta con eventId:", eventId);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
models.EventInscription.findAll({
|
models.EventInscription.findAll({
|
||||||
where: {
|
where: {
|
||||||
eventId: eventId,
|
eventId: eventId,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user