Commit ba8a1d1
fix: guard /api/data endpoint against null and add missing users field
- /api/data now returns a valid empty structure instead of null when
team data is temporarily unavailable
- Added missing users field to fallback structures for consistency
with the actual getAllData() return shape
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent 7c19d2c commit ba8a1d1
1 file changed
Lines changed: 5 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2460 | 2460 | | |
2461 | 2461 | | |
2462 | 2462 | | |
2463 | | - | |
| 2463 | + | |
2464 | 2464 | | |
2465 | 2465 | | |
2466 | 2466 | | |
| |||
3397 | 3397 | | |
3398 | 3398 | | |
3399 | 3399 | | |
3400 | | - | |
| 3400 | + | |
| 3401 | + | |
| 3402 | + | |
| 3403 | + | |
3401 | 3404 | | |
3402 | 3405 | | |
3403 | 3406 | | |
| |||
0 commit comments