.
This commit is contained in:
parent
4690b25fe8
commit
aa1c2ba362
@ -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,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user