Skip to content

Commit

Permalink
fix(mca): Change the check for disabled field in mca create and upd…
Browse files Browse the repository at this point in the history
…ate (#2938)
  • Loading branch information
ThisIsMani authored Nov 21, 2023
1 parent f8618e0 commit e66ccde
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/router/src/core/admin.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1767,7 +1767,7 @@ pub fn validate_status_and_disabled(
};

let disabled = match (disabled, connector_status) {
(Some(true), common_enums::ConnectorStatus::Inactive) => {
(Some(false), common_enums::ConnectorStatus::Inactive) => {
return Err(errors::ApiErrorResponse::InvalidRequestData {
message: "Connector cannot be enabled when connector_status is inactive or when using TemporaryAuth"
.to_string(),
Expand Down

0 comments on commit e66ccde

Please sign in to comment.