Open fluidpb opened 4 months ago
What kind of storage implementation are you using?
memory-db. Debugging this some more and it seems like generating a double elimination bracket with the flag consolationFinal: true
causes this issue:
await manager.create.stage({
name: 'Elimination',
tournamentId: bracket.id,
type: (bracket.roundOne === Elimination.Double || bracket.roundOne === Elimination.Double_Bronze) ? 'double_elimination' : 'single_elimination',
settings: {
matchesChildCount,
balanceByes: true,
// consolationFinal: bracket.bronzeMedal === true,
consolationFinal: false,
grandFinal: 'none'
},
seeding: rankings.map(ranking => {
const players: string[] = [`${ranking.player.firstName} ${ranking.player.lastName}`];
if (ranking.partner) {
players.push(`${ranking.partner.firstName} ${ranking.partner.lastName}`);
}
return {
id: ranking.id,
name: players.join(" / "),
tournament_id: bracket.id,
}
}),
});
Interesting. The 3rd group should have been number: 3
I have a double elimination bracket setup and upon updating a match game, this is the error I received. Looking at the raw JSON data, I can see the following:
This is the error log:
It seems like the method of base/getter.js is looking for these specific combo:
What's the best way to handle this?