fix(official-bots): auto-register official bots with account service #60

Merged
Janis merged 2 commits from worktree-fix+NCS-70-official-bots-auto-register into main 2026-06-05 09:49:31 +02:00

2 Commits

Author SHA1 Message Date
Janis c91953532a style(account): fix scalafmt violation in AccountResourceTest
Build & Test (NowChessSystems) TeamCity build finished
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-03 11:28:29 +02:00
Janis e3503642cd fix(official-bots): auto-register official bots with account service
Build & Test (NowChessSystems) TeamCity build failed
On startup, OfficialBotService now calls POST /api/account/official-bots/sync
(internal endpoint) to ensure all bots in BotController are registered in the
account DB. Without this, OfficialChallengeResource returns 404 for all
official bot challenges because no entries exist.

The sync is idempotent: existing bots are skipped. Startup failure in the
account service is logged but does not prevent the bot service from starting.

Closes NCS-70
https://knockoutwhist.youtrack.cloud/issue/NCS-70

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-03 11:02:50 +02:00