mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-30 01:27:31 +08:00
fix: list recent payments/refunds (#317)
This commit is contained in:
committed by
GitHub
parent
68f92797db
commit
4bc0495d3f
@ -40,7 +40,7 @@ impl PaymentIntentDbExt for PaymentIntent {
|
||||
// when https://github.com/rust-lang/rust/issues/52662 becomes stable
|
||||
let mut filter = <Self as HasTable>::table()
|
||||
.filter(dsl::merchant_id.eq(merchant_id.to_owned()))
|
||||
.order_by(dsl::id)
|
||||
.order(dsl::modified_at.desc())
|
||||
.into_boxed();
|
||||
|
||||
if let Some(customer_id) = customer_id {
|
||||
|
||||
@ -32,7 +32,7 @@ impl RefundDbExt for Refund {
|
||||
) -> CustomResult<Vec<Self>, errors::DatabaseError> {
|
||||
let mut filter = <Self as HasTable>::table()
|
||||
.filter(dsl::merchant_id.eq(merchant_id.to_owned()))
|
||||
.order_by(dsl::id)
|
||||
.order(dsl::modified_at.desc())
|
||||
.into_boxed();
|
||||
|
||||
match &refund_list_details.payment_id {
|
||||
|
||||
Reference in New Issue
Block a user