From 6e4e7f7386d022e0c56027005e54881a6428053a Mon Sep 17 00:00:00 2001 From: naskya Date: Mon, 1 Jul 2024 20:04:32 +0900 Subject: [PATCH] rename --- fishctl/src/command/config/update/v1.rs | 4 ++-- fishctl/src/config/server.rs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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)]