Testability ddd repository (#55)

This commit is contained in:
kos-for-juspay
2022-12-03 07:18:51 +02:00
committed by GitHub
parent 35289df715
commit 200a085fd0
116 changed files with 3551 additions and 1653 deletions

View File

@ -7,7 +7,6 @@ use super::payments::{helpers, PaymentAddress};
use crate::{
consts,
core::errors::{self, RouterResult},
db::merchant_connector_account::IMerchantConnectorAccount,
routes::AppState,
types::{
self, api,
@ -28,7 +27,7 @@ pub async fn construct_refund_router_data<'a, F>(
payment_attempt: &storage::PaymentAttempt,
refund: &'a storage::Refund,
) -> RouterResult<types::RefundsRouterData<F>> {
let db = &state.store;
let db = &*state.store;
//TODO: everytime parsing the json may have impact?
let merchant_connector_account = db
.find_merchant_connector_account_by_merchant_id_connector(