.
This commit is contained in:
parent
4690b25fe8
commit
aa1c2ba362
@ -92,6 +92,9 @@ const extraControllers = {
|
||||
if (Event.overflow_eventId && Event.allow_overflow)
|
||||
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, {
|
||||
allow: (Event.sold_out) ? false : Event.assistants - Event.confirmed >= result.group_size,
|
||||
assistants: Event.assistants,
|
||||
@ -105,7 +108,7 @@ const extraControllers = {
|
||||
}
|
||||
|
||||
console.log(">>>>>>>>>>>>>>>>>>>>>>>checkCapacity", result);
|
||||
|
||||
|
||||
return handleResultResponse(result, null, params, res, result === null ? httpStatus.NOT_FOUND : httpStatus.OK);
|
||||
} catch (error) {
|
||||
return handleErrorResponse(MODULE_NAME, "allowCapacity", error, res);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user