mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-27 19:46:48 +08:00
feat: encryption service integration to support batch encryption and decryption (#5164)
Co-authored-by: dracarys18 <karthikey.hegde@juspay.in> Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
This commit is contained in:
@ -102,7 +102,7 @@ pub async fn upsert_conditional_config(
|
||||
|
||||
algo_id.update_conditional_config_id(key.clone());
|
||||
let config_key = cache::CacheKind::DecisionManager(key.into());
|
||||
update_merchant_active_algorithm_ref(db, &key_store, config_key, algo_id)
|
||||
update_merchant_active_algorithm_ref(&state, &key_store, config_key, algo_id)
|
||||
.await
|
||||
.change_context(errors::ApiErrorResponse::InternalServerError)
|
||||
.attach_printable("Failed to update routing algorithm ref")?;
|
||||
@ -138,7 +138,7 @@ pub async fn upsert_conditional_config(
|
||||
|
||||
algo_id.update_conditional_config_id(key.clone());
|
||||
let config_key = cache::CacheKind::DecisionManager(key.into());
|
||||
update_merchant_active_algorithm_ref(db, &key_store, config_key, algo_id)
|
||||
update_merchant_active_algorithm_ref(&state, &key_store, config_key, algo_id)
|
||||
.await
|
||||
.change_context(errors::ApiErrorResponse::InternalServerError)
|
||||
.attach_printable("Failed to update routing algorithm ref")?;
|
||||
@ -168,7 +168,7 @@ pub async fn delete_conditional_config(
|
||||
.unwrap_or_default();
|
||||
algo_id.config_algo_id = None;
|
||||
let config_key = cache::CacheKind::DecisionManager(key.clone().into());
|
||||
update_merchant_active_algorithm_ref(db, &key_store, config_key, algo_id)
|
||||
update_merchant_active_algorithm_ref(&state, &key_store, config_key, algo_id)
|
||||
.await
|
||||
.change_context(errors::ApiErrorResponse::InternalServerError)
|
||||
.attach_printable("Failed to update deleted algorithm ref")?;
|
||||
|
||||
Reference in New Issue
Block a user