refactor(core): remove connector response table and use payment_attempt instead (#2644)

This commit is contained in:
Abhishek Marrivagu
2023-11-09 20:39:12 +05:30
committed by GitHub
parent e67e808d70
commit 966369b6f2
35 changed files with 152 additions and 976 deletions

View File

@ -206,7 +206,6 @@ async fn drainer(
let payment_attempt = "payment_attempt";
let refund = "refund";
let reverse_lookup = "reverse_lookup";
let connector_response = "connector_response";
let address = "address";
match db_op {
// TODO: Handle errors
@ -230,13 +229,6 @@ async fn drainer(
kv::Insertable::Refund(a) => {
macro_util::handle_resp!(a.insert(&conn).await, insert_op, refund)
}
kv::Insertable::ConnectorResponse(a) => {
macro_util::handle_resp!(
a.insert(&conn).await,
insert_op,
connector_response
)
}
kv::Insertable::Address(addr) => {
macro_util::handle_resp!(addr.insert(&conn).await, insert_op, address)
}
@ -283,11 +275,6 @@ async fn drainer(
refund
)
}
kv::Updateable::ConnectorResponseUpdate(a) => macro_util::handle_resp!(
a.orig.update(&conn, a.update_data).await,
update_op,
connector_response
),
kv::Updateable::AddressUpdate(a) => macro_util::handle_resp!(
a.orig.update(&conn, a.update_data).await,
update_op,