mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-11-02 04:04:43 +08:00
feat(router): dynamically toggle KV for merchant and refactoring around it (#79)
This commit is contained in:
@ -807,9 +807,10 @@ pub(super) async fn filter_by_constraints(
|
||||
db: &dyn StorageInterface,
|
||||
constraints: &api::PaymentListConstraints,
|
||||
merchant_id: &str,
|
||||
storage_scheme: enums::MerchantStorageScheme,
|
||||
) -> CustomResult<Vec<storage::PaymentIntent>, errors::StorageError> {
|
||||
let result = db
|
||||
.filter_payment_intent_by_constraints(merchant_id, constraints)
|
||||
.filter_payment_intent_by_constraints(merchant_id, constraints, storage_scheme)
|
||||
.await?;
|
||||
Ok(result)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user