octicon-rss(16/)
You've already forked hyperswitch
mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-11-10 23:30:31 +08:00
refactor(merchant_connector_account): change unique constraint to connector label (#3091)
Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
This commit is contained in:
octicon-git-branch(16/)
octicon-tag(16/)
committed by
GitHub
gitea-unlock(16/)
parent
f123479027
commit
073310c1f6
octicon-diff(16/tw-mr-1) 17 changed files with 381 additions and 23 deletions
@@ -923,7 +923,7 @@ pub async fn create_payment_connector(
|
||||
disabled,
|
||||
metadata: req.metadata,
|
||||
frm_configs,
|
||||
connector_label: Some(connector_label),
|
||||
connector_label: Some(connector_label.clone()),
|
||||
business_country: req.business_country,
|
||||
business_label: req.business_label.clone(),
|
||||
business_sub_label: req.business_sub_label.clone(),
|
||||
@@ -960,7 +960,7 @@ pub async fn create_payment_connector(
|
||||
.to_duplicate_response(
|
||||
errors::ApiErrorResponse::DuplicateMerchantConnectorAccount {
|
||||
profile_id: profile_id.clone(),
|
||||
connector_name: req.connector_name.to_string(),
|
||||
connector_label,
|
||||
},
|
||||
)?;
|
||||
|
||||
@@ -1277,7 +1277,7 @@ pub async fn update_payment_connector(
|
||||
.change_context(
|
||||
errors::ApiErrorResponse::DuplicateMerchantConnectorAccount {
|
||||
profile_id,
|
||||
connector_name: request_connector_label.unwrap_or_default(),
|
||||
connector_label: request_connector_label.unwrap_or_default(),
|
||||
},
|
||||
)
|
||||
.attach_printable_lazy(|| {
|
||||
|
||||
Reference in New Issue
Block a user