a
This commit is contained in:
parent
b827115bde
commit
73c729e31e
@ -413,7 +413,15 @@ console.log('actualizo confirmados de la nueva reserva');
|
|||||||
|
|
||||||
//Actualizamos aforo de la lista de espera del evento y creamos inscripcion
|
//Actualizamos aforo de la lista de espera del evento y creamos inscripcion
|
||||||
console.log('evento de lista de espera que debo actulizar sus confirmados>>>>>>>>>>>>>>>>>>>>>', dataInscription.event.overflow_eventId);
|
console.log('evento de lista de espera que debo actulizar sus confirmados>>>>>>>>>>>>>>>>>>>>>', dataInscription.event.overflow_eventId);
|
||||||
|
console.log('evento de lista de espera que debo actulizar sus confirmados>>>>>>>>>>>>>>>>>>>>>', EventOrReservationChangeId);
|
||||||
|
|
||||||
|
const ConfirmedWaitList = await eventInscriptionService._getCountInscriptionsWithOverflowEventId(dataInscription.event.overflow_eventId);
|
||||||
console.log('cantidad>>>>>>>>>>>>>>>>>>>>>', dataInscription.inscriptionsWithoutReservationCount);
|
console.log('cantidad>>>>>>>>>>>>>>>>>>>>>', dataInscription.inscriptionsWithoutReservationCount);
|
||||||
|
console.log('cantidad>>>>>>>>>>>>>>>>>>>>>', ConfirmedWaitList);
|
||||||
|
|
||||||
|
marketingListId = (await eventService._getEvent(EventOrReservationChangeId)).marketing_list;
|
||||||
|
|
||||||
|
|
||||||
if (await eventService._updateConfirmedEvent(dataInscription.event.overflow_eventId, dataInscription.inscriptionsWithoutReservationCount)) {
|
if (await eventService._updateConfirmedEvent(dataInscription.event.overflow_eventId, dataInscription.inscriptionsWithoutReservationCount)) {
|
||||||
console.log('voy a crearrrrrr la inscripcion');
|
console.log('voy a crearrrrrr la inscripcion');
|
||||||
dataInscription.inscription = await eventInscriptionService._createInscription(dataInscription.event.id,
|
dataInscription.inscription = await eventInscriptionService._createInscription(dataInscription.event.id,
|
||||||
|
|||||||
@ -86,7 +86,7 @@ const extraMethods = {
|
|||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
//Nos devuelve el número de inscripciones confirmadas para ese evento sin tener en cuenta reservas
|
//Nos devuelve el número de inscripciones confirmadas para ese evento sin tener en cuenta reservas ni lista de espera
|
||||||
_getCountInscriptionsWithoutReservationAndOverflow: (eventId) => {
|
_getCountInscriptionsWithoutReservationAndOverflow: (eventId) => {
|
||||||
return models.EventInscription.count({
|
return models.EventInscription.count({
|
||||||
where: {
|
where: {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user