fix(kiosk): set Axiom kiosk_id from bundle on startup

kiosk_id only set during claim. After restart, loaded from disk,
kiosk_id stayed empty. Now set from bundle.kiosk_id after fetch.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Mitchell R 2026-05-26 05:31:15 +02:00
parent 24f9532adf
commit 6b31c09e9d
No known key found for this signature in database

View file

@ -171,6 +171,7 @@ fn activate(app: &Application) {
// cached on-disk bundle and keep retrying every 30s in the background. // cached on-disk bundle and keep retrying every 30s in the background.
let initial = match server::fetch_bundle(&server, &key) { let initial = match server::fetch_bundle(&server, &key) {
Some(b) => { Some(b) => {
crate::axiom::set_kiosk_id(b.kiosk_id.to_string());
info!( info!(
"bundle: {} cameras, {} display(s)", "bundle: {} cameras, {} display(s)",
b.cameras.len(), b.cameras.len(),