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); }