fix: clear windowCloseAt when reopening a round
All checks were successful
Build and Push Docker Image / build (push) Successful in 8m57s
All checks were successful
Build and Push Docker Image / build (push) Successful in 8m57s
When a round is reopened (ROUND_CLOSED → ROUND_ACTIVE), the old windowCloseAt was still in the past, causing jury submissions to fail with "Voting window has closed" even though the round status was active. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -462,10 +462,11 @@ export async function reopenRound(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Reopen this round
|
// Reopen this round — clear windowCloseAt so the voting window check
|
||||||
|
// doesn't reject submissions with "Voting window has closed".
|
||||||
const updated = await tx.round.update({
|
const updated = await tx.round.update({
|
||||||
where: { id: roundId },
|
where: { id: roundId },
|
||||||
data: { status: 'ROUND_ACTIVE' },
|
data: { status: 'ROUND_ACTIVE', windowCloseAt: null },
|
||||||
})
|
})
|
||||||
|
|
||||||
await tx.decisionAuditLog.create({
|
await tx.decisionAuditLog.create({
|
||||||
|
|||||||
Reference in New Issue
Block a user