mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-11-02 21:07:58 +08:00
refactor: use business profile domain models instead of diesel models (#5566)
This commit is contained in:
@ -58,6 +58,8 @@ pub async fn generate_sample_data(
|
||||
let business_label_default = merchant_parsed_details.first().map(|x| x.business.clone());
|
||||
|
||||
let profile_id = crate::core::utils::get_profile_id_from_business_details(
|
||||
key_manager_state,
|
||||
&key_store,
|
||||
business_country_default,
|
||||
business_label_default.as_ref(),
|
||||
&merchant_from_db,
|
||||
@ -89,7 +91,7 @@ pub async fn generate_sample_data(
|
||||
|
||||
state
|
||||
.store
|
||||
.list_business_profile_by_merchant_id(merchant_id)
|
||||
.list_business_profile_by_merchant_id(key_manager_state, &key_store, merchant_id)
|
||||
.await
|
||||
.change_context(SampleDataError::InternalServerError)
|
||||
.attach_printable("Failed to get business profile")?
|
||||
|
||||
Reference in New Issue
Block a user