You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
use api_models::user::dashboard_metadata::{selfas api,GetMultipleMetaDataPayload};
6
4
#[cfg(feature = "email")]
7
5
use common_enums::EntityType;
8
6
use common_utils::pii;
@@ -463,42 +461,14 @@ async fn insert_metadata(
463
461
pii::Email::from_str(inner_poc_email)
464
462
.change_context(UserErrors::EmailParsingError)?;
465
463
}
466
-
let key_manager_state = &(state).into();
467
-
let merchant_key_store = state
468
-
.store
469
-
.get_merchant_key_store_by_merchant_id(
470
-
key_manager_state,
471
-
&user.merchant_id.clone(),
472
-
&state.store.get_master_key().to_vec().into(),
473
-
)
474
-
.await
475
-
.change_context(UserErrors::InternalServerError)
476
-
.attach_printable("Failed to retrieve merchant key store by merchant_id")?;
477
-
let merchant_account = state
478
-
.store
479
-
.find_merchant_account_by_merchant_id(
480
-
key_manager_state,
481
-
&user.merchant_id.clone(),
482
-
&merchant_key_store,
483
-
)
484
-
.await
485
-
.change_context(UserErrors::InternalServerError)
486
-
.attach_printable("Failed to retrieve merchant account by merchant_id")?;
487
-
// The product type field in the merchant account table is nullable, and if the corresponding value is null, the default orchestration product type is considered.
488
-
let product_type = merchant_account.product_type.unwrap_or_default();
0 commit comments