fix: rename variable to avoid shadowing expectedRounds function
Variable 'expectedRounds' was shadowing the imported function of the same name, causing TypeScript build failure.
This commit is contained in:
@@ -175,8 +175,8 @@ export async function POST(_request: Request, { params }: RouteParams) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Calculate expected rounds
|
// Calculate expected rounds
|
||||||
const expectedRounds = expectedRounds(teamCount);
|
const numRounds = expectedRounds(teamCount);
|
||||||
console.log(`[Schedule API] Expected rounds: ${expectedRounds}`);
|
console.log(`[Schedule API] Expected rounds: ${numRounds}`);
|
||||||
|
|
||||||
if (teamDurability === "permanent") {
|
if (teamDurability === "permanent") {
|
||||||
// ============================================
|
// ============================================
|
||||||
@@ -285,7 +285,7 @@ export async function POST(_request: Request, { params }: RouteParams) {
|
|||||||
const schedule = generateVariableRoundRobin(
|
const schedule = generateVariableRoundRobin(
|
||||||
participants,
|
participants,
|
||||||
teamCount,
|
teamCount,
|
||||||
expectedRounds,
|
numRounds,
|
||||||
generateTeamWithRotation
|
generateTeamWithRotation
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user