Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 3 additions & 5 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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");

Expand All @@ -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();
Expand Down
4 changes: 2 additions & 2 deletions src/routes/arena.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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);
Expand Down
Loading