0
0
Fork 0

Check the all-elimination clause in the create bracket

This commit is contained in:
Oliver-Akins 2021-07-19 01:07:52 -06:00
parent 3eb482e313
commit cdc5ed5cf6
2 changed files with 8 additions and 9 deletions

View file

@ -1,4 +1,4 @@
import { config, db } from "@/main"
import { db } from "@/main"
export default {
method: `GET`, path: `/bracket/winners`,
@ -16,11 +16,6 @@ export default {
};
};
// Ensure that the all elimination limit didn't get hit
if (winners.length > Math.floor(config.discord.quote_max / 2)) {
return { winners: [] };
};
return { winners };
},
}