mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-11-01 11:06:50 +08:00
fix(mca): Change the check for disabled field in mca create and update (#2938)
This commit is contained in:
@ -1767,7 +1767,7 @@ pub fn validate_status_and_disabled(
|
|||||||
};
|
};
|
||||||
|
|
||||||
let disabled = match (disabled, connector_status) {
|
let disabled = match (disabled, connector_status) {
|
||||||
(Some(true), common_enums::ConnectorStatus::Inactive) => {
|
(Some(false), common_enums::ConnectorStatus::Inactive) => {
|
||||||
return Err(errors::ApiErrorResponse::InvalidRequestData {
|
return Err(errors::ApiErrorResponse::InvalidRequestData {
|
||||||
message: "Connector cannot be enabled when connector_status is inactive or when using TemporaryAuth"
|
message: "Connector cannot be enabled when connector_status is inactive or when using TemporaryAuth"
|
||||||
.to_string(),
|
.to_string(),
|
||||||
|
|||||||
Reference in New Issue
Block a user