diff --git a/src/index.ts b/src/index.ts index f424a7db..efe09125 100644 --- a/src/index.ts +++ b/src/index.ts @@ -4,7 +4,7 @@ import http from "http"; import app from "./app"; import { GraphQLClient } from "graphql-request"; import { queue_element } from "./helpers/docker_queue"; -// import docker_cron from "./helpers/docker_queue"; +import docker_cron from "./helpers/docker_queue"; const debug = Debug("eesast-api"); @@ -27,10 +27,8 @@ export const client = new GraphQLClient( ); export const docker_queue: queue_element[] = []; -// export const docker_queue: queue_element[] = JSON.parse( -// fs.readFileSync("/data/queue_data.json").toString() -// ); -// docker_cron(); + +docker_cron(); // weekly_cron(); // weekly_init(); diff --git a/src/routes/arena.ts b/src/routes/arena.ts index 3cd5c8c8..93708d16 100644 --- a/src/routes/arena.ts +++ b/src/routes/arena.ts @@ -16,7 +16,7 @@ const router = express.Router(); * @param {uuid} map_id * @param {TeamLabelBind[]} team_labels * @param {number} exposed (0 or 1, default 1) - * @param {number} envoy (0 or 1, default 1) + * @param {number} envoy (0 or 1, default 0) */ router.post("/create", authenticate(), async (req, res) => { try { @@ -25,7 +25,7 @@ router.post("/create", authenticate(), async (req, res) => { const map_id = req.body.map_id; const team_label_binds: ContConf.TeamLabelBind[] = req.body.team_labels; const exposed = req.body.exposed ?? 1; - const envoy = req.body.envoy ?? 1; + const envoy = req.body.envoy ?? 0; console.debug("user_uuid: ", user_uuid); console.debug("contest_name: ", contest_name); console.debug("map_id: ", map_id);