Skip to content

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

fix(diesel_models): Fix error message while using generic filter (#7935)

Amey Wale997ef019b619
diff --git a/crates/diesel_models/src/query/generics.rs b/crates/diesel_models/src/query/generics.rs
index e23f4026cc..d5581932ea 100644
--- a/crates/diesel_models/src/query/generics.rs
+++ b/crates/diesel_models/src/query/generics.rs
@@ -441,7 +441,7 @@ where
track_database_call::<T, _, _>(query.get_results_async(conn), DatabaseOperation::Filter)
.await
- .change_context(errors::DatabaseError::NotFound)
+ .change_context(errors::DatabaseError::Others)
.attach_printable("Error filtering records by predicate")
}