Skip to content

Commit e66ccde

Browse files
authored
fix(mca): Change the check for disabled field in mca create and update (#2938)
1 parent f8618e0 commit e66ccde

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/router/src/core/admin.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1767,7 +1767,7 @@ pub fn validate_status_and_disabled(
17671767
};
17681768

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

0 commit comments

Comments
 (0)