Open source, composable payments platform | PCI compliant | SaaS and Self-host options | Enables connectivity to multiple payment, payout, fraud, vault and tokenization providers | Uplifts authorization with intelligent routing and revenue recovery | Reduce payment processing costs with cost observability | Reduces payment ops with reconciliation
Rust adyenbeginner-friendlyfeaturedfinancefintechhacktoberfesthigh-performanceopen-sourceorchestrationpaymentpayment-gatewaypayment-integrationpayment-processingpaymentspayments-platformrestful-apirustsdkstripeworks-with-react
refactor(users): modify query to list only v1 merchant_accounts for list v1 merchant accounts API (#7782)
Sandeep Kumar203ae3e97e53
diff --git a/crates/diesel_models/src/query/merchant_account.rs b/crates/diesel_models/src/query/merchant_account.rsindex c40af7f653..ab51953b6e 100644--- a/crates/diesel_models/src/query/merchant_account.rs+++ b/crates/diesel_models/src/query/merchant_account.rs@@ -1,4 +1,5 @@-use diesel::{associations::HasTable, ExpressionMethods, Table};+use common_types::consts::API_VERSION;+use diesel::{associations::HasTable, BoolExpressionMethods, ExpressionMethods, Table};use super::generics;#[cfg(feature = "v1")]@@ -101,7 +102,9 @@ impl MerchantAccount {_,>(conn,- dsl::organization_id.eq(organization_id.to_owned()),+ dsl::organization_id+ .eq(organization_id.to_owned())+ .and(dsl::version.eq(API_VERSION)),None,None,None,