mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-27 11:24:45 +08:00
refactor(customers_v2): address panics and some bugs in customers v2 endpoints (#6836)
This commit is contained in:
@ -479,7 +479,7 @@ impl UniqueConstraints for diesel_models::Customer {
|
||||
#[cfg(all(feature = "v2", feature = "customer_v2"))]
|
||||
impl UniqueConstraints for diesel_models::Customer {
|
||||
fn unique_constraints(&self) -> Vec<String> {
|
||||
vec![format!("customer_{}", self.id.clone())]
|
||||
vec![format!("customer_{}", self.id.get_string_repr())]
|
||||
}
|
||||
fn table_name(&self) -> &str {
|
||||
"Customer"
|
||||
|
||||
Reference in New Issue
Block a user