refactor: introduce a domain type for profile ID (#5687)

This commit is contained in:
Sanchith Hegde
2024-08-27 13:31:01 +05:30
committed by GitHub
parent fac8e7916f
commit b63d723b8b
118 changed files with 707 additions and 547 deletions

View File

@ -347,14 +347,14 @@ async fn incoming_webhooks_core<W: types::OutgoingWebhookType>(
)?,
};
let profile_id = merchant_connector_account.profile_id.as_ref();
let profile_id = &merchant_connector_account.profile_id;
let business_profile = state
.store
.find_business_profile_by_profile_id(key_manager_state, &key_store, profile_id)
.await
.to_not_found_response(errors::ApiErrorResponse::BusinessProfileNotFound {
id: profile_id.to_string(),
id: profile_id.get_string_repr().to_owned(),
})?;
match flow_type {