restart listener when config changes

This commit is contained in:
jfmonty2 committed 2023-04-28 14:33:04 -07:00
1 parent 33a5600a30
commit 70d71ce14e
6 files changed
+171 -74

No files matched your search

+2 -1
View File
@@ -73,5 +73,6 @@ pub fn get_config(app_state: State<'_, AppState>) -> AppConfig {
pub async fn save_config(config: AppConfig, app_state: State<'_, AppState>) -> Result<(), String> {
app_state.update_config(config)
.await
.map_err(|e| format!("Error saving config to database: {e}"))
.map_err(|e| format!("Error saving config: {e}"))?;
Ok(())
}