refactor: use business profile domain models instead of diesel models (#5566)

This commit is contained in:
Sanchith Hegde
2024-08-08 15:39:02 +05:30
committed by GitHub
parent baaa73cff9
commit e56ad0d688
69 changed files with 913 additions and 990 deletions

View File

@ -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")?