From 8503076bf1721cf7f0edd5db0f0882924652387a Mon Sep 17 00:00:00 2001 From: "mati108@gmail.com" <34651529+matbenitez@users.noreply.github.com> Date: Fri, 23 Nov 2018 09:09:40 -0300 Subject: [PATCH] Fixing issue for cero competitions running. --- CompetitionStorage.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CompetitionStorage.js b/CompetitionStorage.js index 637efde9b..007d07253 100644 --- a/CompetitionStorage.js +++ b/CompetitionStorage.js @@ -145,6 +145,10 @@ function newCompetitionStorage(pName) { thisObject.competitorsSequences.push(fileSequences); + if (pCompetition.participants.length === 0) { //If there are no competitions, respond OK + callBackFunction(GLOBAL.DEFAULT_OK_RESPONSE); + } + } catch (err) { if (ERROR_LOG === true) { logger.write("[ERROR] initialize -> err = " + err); }