This commit is contained in:
David Arranz 2024-08-29 12:24:29 +02:00
parent 4690b25fe8
commit aa1c2ba362

View File

@ -92,6 +92,9 @@ const extraControllers = {
if (Event.overflow_eventId && Event.allow_overflow) if (Event.overflow_eventId && Event.allow_overflow)
EventOverflow = await eventService._getEvent(Event.overflow_eventId); EventOverflow = await eventService._getEvent(Event.overflow_eventId);
console.log(">>>>>>>>>>>>>>>>>>>>>>>Event.sold_out: ", Event.sold_out));
console.log(">>>>>>>>>>>>>>>>>>>>>>>EventOverflow.sold_out: ", EventOverflow.sold_out));
result = Object.assign({}, result, { result = Object.assign({}, result, {
allow: (Event.sold_out) ? false : Event.assistants - Event.confirmed >= result.group_size, allow: (Event.sold_out) ? false : Event.assistants - Event.confirmed >= result.group_size,
assistants: Event.assistants, assistants: Event.assistants,