Skip to content

Commit

Permalink
fix(payout): query for getting a list of active payout IDs (#5771)
Browse files Browse the repository at this point in the history
  • Loading branch information
kashif-m authored Sep 4, 2024
1 parent b853226 commit 1c39cc1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions crates/storage_impl/src/payouts/payouts.rs
Original file line number Diff line number Diff line change
Expand Up @@ -584,6 +584,7 @@ impl<T: DatabaseStore> PayoutsInterface for crate::RouterStore<T> {
diesel_models::schema::customers::table
.on(cust_dsl::customer_id.nullable().eq(po_dsl::customer_id)),
)
.filter(cust_dsl::merchant_id.eq(merchant_id.to_owned()))
.filter(po_dsl::merchant_id.eq(merchant_id.to_owned()))
.order(po_dsl::created_at.desc())
.into_boxed();
Expand Down Expand Up @@ -785,6 +786,7 @@ impl<T: DatabaseStore> PayoutsInterface for crate::RouterStore<T> {
.on(cust_dsl::customer_id.nullable().eq(po_dsl::customer_id)),
)
.select(po_dsl::payout_id)
.filter(cust_dsl::merchant_id.eq(merchant_id.to_owned()))
.filter(po_dsl::merchant_id.eq(merchant_id.to_owned()))
.order(po_dsl::created_at.desc())
.into_boxed();
Expand Down

0 comments on commit 1c39cc1

Please sign in to comment.