Commit 9b98fad0 authored by VINXIS's avatar VINXIS
Browse files

pools shouldnt generate a ro64 pool

parent 4801f3c4
Pipeline #4799 failed with stages
......@@ -85,7 +85,6 @@ import ModGroupComponent from "./ModGroupComponent";
const pools = [
'qualifiers',
'round-of-64',
'round-of-32',
'round-of-16',
'quarter-finals',
......
......@@ -99,7 +99,7 @@ export class App {
Logger.getLogger("mongo").info("Connected");
const [pools, stages, qualifiers] = await Promise.all([Mappool.find(), Stage.find(), Qualifier.find()]);
if(!pools || pools.length === 0) {
const stageNames = ["QUALIFIERS", "ROUND OF 64", "ROUND OF 32", "ROUND OF 16", "QUARTER FINALS", "SEMI FINALS", "FINALS", "GRAND FINALS"];
const stageNames = ["QUALIFIERS", "ROUND OF 32", "ROUND OF 16", "QUARTER FINALS", "SEMI FINALS", "FINALS", "GRAND FINALS"];
await Promise.all(stageNames.map((name) => (async () => {
const newPool = new Mappool({
name,
......
......@@ -29,7 +29,6 @@ export class MappoolRouter implements IRouter {
pools = _.sortBy(pools, (pool) => {
const order = {
"QUALIFIERS": 1,
"ROUND OF 64": 2,
"ROUND OF 32": 3,
"ROUND OF 16": 4,
"QUARTER FINALS": 5,
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment