.
This commit is contained in:
parent
6911429c2d
commit
3da8cb2516
@ -94,14 +94,14 @@ const extraControllers = {
|
|||||||
EventOverflow = await eventService._getEvent(Event.overflow_eventId);
|
EventOverflow = await eventService._getEvent(Event.overflow_eventId);
|
||||||
|
|
||||||
result = Object.assign({}, result, {
|
result = Object.assign({}, result, {
|
||||||
allow: (Event.sold_out) ? Event.assistants - Event.confirmed >= result.group_size : false, // false
|
allow: (Event.sold_out) ? false : Event.assistants - Event.confirmed >= result.group_size,
|
||||||
assistants: Event.assistants,
|
assistants: Event.assistants,
|
||||||
confirmed: Event.confirmed,
|
confirmed: Event.confirmed,
|
||||||
sold_out: Event.sold_out,
|
sold_out: Event.sold_out,
|
||||||
assistants_overflow: EventOverflow ? EventOverflow.assistants : 0,
|
assistants_overflow: EventOverflow ? EventOverflow.assistants : 0,
|
||||||
confirmed_overflow: EventOverflow ? EventOverflow.confirmed : 0,
|
confirmed_overflow: EventOverflow ? EventOverflow.confirmed : 0,
|
||||||
sold_out_overflow: EventOverflow ? EventOverflow.sold_out : 1,
|
sold_out_overflow: EventOverflow ? EventOverflow.sold_out : 1,
|
||||||
allow_overflow: EventOverflow ? ((EventOverflow ? EventOverflow.sold_out : 1) ? EventOverflow.assistants - EventOverflow.confirmed >= result.group_size : false) : false,
|
allow_overflow: EventOverflow ? ((EventOverflow ? EventOverflow.sold_out : 1) ? false : EventOverflow.assistants - EventOverflow.confirmed >= result.group_size ) : false,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user