diff --git a/src/dto/req.rs b/src/dto/req.rs index 5711f9ad..ef66bbfe 100644 --- a/src/dto/req.rs +++ b/src/dto/req.rs @@ -9,6 +9,6 @@ pub struct SelectLayer { #[derive(Deserialize)] pub struct ChangeResource { pub kind: String, - #[serde(rename = "audioEnabled")] - pub audio_enabled: bool, + #[serde(rename = "enabled")] + pub enabled: bool, } diff --git a/src/forward/mod.rs b/src/forward/mod.rs index 2cb29eb2..2f5f4b26 100644 --- a/src/forward/mod.rs +++ b/src/forward/mod.rs @@ -216,7 +216,7 @@ impl PeerForward { return Err(anyhow::anyhow!("kind unspecified")); } - let rid = if change_resource.audio_enabled { + let rid = if change_resource.enabled { constant::RID_ENABLE.to_string() } else { constant::RID_DISABLE.to_string()