Check the all-elimination clause in the create bracket
This commit is contained in:
parent
3eb482e313
commit
cdc5ed5cf6
2 changed files with 8 additions and 9 deletions
|
|
@ -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 };
|
||||
},
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue