diff --git a/fishctl/src/command/config/update/v1.rs b/fishctl/src/command/config/update/v1.rs index 5ffaa12..96faa0f 100644 --- a/fishctl/src/command/config/update/v1.rs +++ b/fishctl/src/command/config/update/v1.rs @@ -372,7 +372,7 @@ fn create_new_server_config( } }; - let auto_email = match meta.email.as_ref() { + let email = match meta.email.as_ref() { Some(address) => Some(server::Email { enabled: meta.enable_email, address: address.to_owned(), @@ -487,7 +487,7 @@ fn create_new_server_config( .try_into() .map_err(|_| Error::InvalidConfig("Invalid `port` number"))?, }, - auto_email, + email, http_proxy, media_proxy, summaly_proxy, diff --git a/fishctl/src/config/server.rs b/fishctl/src/config/server.rs index 4238460..c491386 100644 --- a/fishctl/src/config/server.rs +++ b/fishctl/src/config/server.rs @@ -40,7 +40,7 @@ pub struct Network { pub listen: Listen, #[validate(nested)] #[validate(custom(function = "validate_email_struct"))] - pub auto_email: Option, + pub email: Option, #[validate(nested)] pub http_proxy: Option, #[validate(nested)]