Skip to content

Commit

Permalink
update name
Browse files Browse the repository at this point in the history
  • Loading branch information
hongcha98 committed Feb 3, 2024
1 parent a75e255 commit 5326c9b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/dto/req.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
}
2 changes: 1 addition & 1 deletion src/forward/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 5326c9b

Please sign in to comment.