load base url and critical channels in initial_load

This commit is contained in:
Ruben Fiszel
2025-04-11 08:22:21 +00:00
parent c57490a572
commit 5e054d3385
2 changed files with 12 additions and 1 deletions
+11
View File
@@ -125,6 +125,17 @@ pub async fn initial_load(
server_mode: bool,
#[cfg(feature = "parquet")] disable_s3_store: bool,
) {
if let Err(e) = reload_base_url_setting(&conn).await {
tracing::error!("Error loading base url: {:?}", e)
}
if let Some(db) = conn.as_sql() {
if let Err(e) = reload_critical_error_channels_setting(&db).await {
tracing::error!("Could loading critical error emails setting: {:?}", e);
}
}
if let Err(e) = load_metrics_enabled(conn).await {
tracing::error!("Error loading expose metrics: {e:#}");
}
+1 -1
View File
@@ -1307,7 +1307,7 @@ struct UsedTriggers {
pub postgres_used: bool,
pub mqtt_used: bool,
pub sqs_used: bool,
pub gcp_used: bool
pub gcp_used: bool,
}
async fn get_used_triggers(