fix: matchmaking — add match_type, initial_time_ms, started_at to match creation
ROOT CAUSE: matches table has NOT NULL constraint on 'match_type' column.
Insert was failing silently, falling through to 'queued: true'.
FIX: Added required fields:
- match_type: 'rated'
- initial_time_ms: calculated from time_control
- white/black_time_remaining_ms: set to initial
- is_rated: true
- started_at: current timestamp
Removed debug output.
Co-Authored-By:
Claude Opus 4.6 <noreply@anthropic.com>
Showing
Please register or sign in to comment