mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-11-10 23:30:31 +08:00
feat(router): add kv implementation for address for payment flows (#2177)
This commit is contained in:
committed by
GitHub
parent
eb10aca631
commit
afff3e1789
@@ -148,6 +148,7 @@ async fn drainer(
|
||||
let payment_intent = "payment_intent";
|
||||
let payment_attempt = "payment_attempt";
|
||||
let refund = "refund";
|
||||
let address = "address";
|
||||
match db_op {
|
||||
// TODO: Handle errors
|
||||
kv::DBOperation::Insert { insertable } => {
|
||||
@@ -170,6 +171,9 @@ async fn drainer(
|
||||
kv::Insertable::Refund(a) => {
|
||||
macro_util::handle_resp!(a.insert(&conn).await, insert_op, refund)
|
||||
}
|
||||
kv::Insertable::Address(addr) => {
|
||||
macro_util::handle_resp!(addr.insert(&conn).await, insert_op, address)
|
||||
}
|
||||
}
|
||||
})
|
||||
.await;
|
||||
|
||||
Reference in New Issue
Block a user