mirror of
https://github.com/BetterCorp/BetterFrame.git
synced 2026-05-26 19:06:34 +00:00
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:
parent
24f9532adf
commit
6b31c09e9d
1 changed files with 1 additions and 0 deletions
|
|
@ -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(),
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue