This commit is contained in:
David Arranz 2024-08-29 12:22:11 +02:00
parent 3da8cb2516
commit 4690b25fe8

View File

@ -71,7 +71,6 @@ const extraControllers = {
allow: false,
error: undefined,
};
console.log(">>>>>>>>>>>>>>>>>>>>>>>checkCapacity", result);
if (!result.eventId) {
return handleResultResponse(null, null, params, res, httpStatus.BAD_REQUEST);
@ -105,6 +104,8 @@ 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);