fix(core): connector customer id population dependency removed from config (#8937)

This commit is contained in:
sweta-sharma
2025-08-18 13:17:52 +05:30
committed by GitHub
parent 375e9be9fd
commit f762f4f585
8 changed files with 13 additions and 12 deletions

View File

@ -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)
}
}