The default ?period=current scope arrives as periodId null, and buildLeaderboardPayload built the boards before resolving currentPeriod(), so buildPeriodBoards short-circuited to zero entries: the live period's board was always empty even while ledger rows existed for it. Resolve the period first and feed its id into the boards, and cover the default scope with a real-clock regression test (the suite previously only exercised explicit period ids). |
||
|---|---|---|
| .. | ||
| audit | ||
| e2e | ||
| int | ||
| push-schema.ts | ||
| seed-baseline.ts | ||
| test-db.ts | ||
| vitest-global.ts | ||
| vitest-teardown.ts | ||