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: map not found error properly in db_not found (#1671)

Kartikeya Hegdefbd40b5ac44b
diff --git a/crates/router/src/core/errors.rs b/crates/router/src/core/errors.rs
index e615ef7128..0b4e71ffa8 100644
--- a/crates/router/src/core/errors.rs
+++ b/crates/router/src/core/errors.rs
@@ -98,6 +98,7 @@ impl StorageError {
err.current_context(),
storage_errors::DatabaseError::NotFound
),
+ Self::ValueNotFound(_) => true,
_ => false,
}
}