mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-28 20:23:43 +08:00
fix(core): connector customer id population dependency removed from config (#8937)
This commit is contained in:
@ -87,15 +87,16 @@ pub fn should_call_connector_create_customer<'a>(
|
||||
.connector_customer
|
||||
.connector_list
|
||||
.contains(&connector.connector_name);
|
||||
|
||||
let connector_customer_details = customer
|
||||
.as_ref()
|
||||
.and_then(|customer| customer.get_connector_customer_id(connector_label));
|
||||
if connector_needs_customer {
|
||||
let connector_customer_details = customer
|
||||
.as_ref()
|
||||
.and_then(|customer| customer.get_connector_customer_id(connector_label));
|
||||
let should_call_connector = connector_customer_details.is_none();
|
||||
(should_call_connector, connector_customer_details)
|
||||
} else {
|
||||
(false, None)
|
||||
// Populates connector_customer_id if it is present after data migration
|
||||
// For connector which does not have create connector customer flow
|
||||
(false, connector_customer_details)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user