diff --git a/rust/agama-lib/src/store.rs b/rust/agama-lib/src/store.rs index 1e254e095a..e9a7fb4488 100644 --- a/rust/agama-lib/src/store.rs +++ b/rust/agama-lib/src/store.rs @@ -83,14 +83,14 @@ impl Store { if let Some(network) = &settings.network { self.network.store(network).await?; } + if let Some(scripts) = &settings.scripts { + self.scripts.store(scripts).await?; + } // order is important here as network can be critical for connection // to registration server and selecting product is important for rest if let Some(product) = &settings.product { self.product.store(product).await?; } - if let Some(scripts) = &settings.scripts { - self.scripts.store(scripts).await?; - } // ordering: localization after product as some product may miss some locales if let Some(localization) = &settings.localization { self.localization.store(localization).await?;