mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-30 09:38:33 +08:00
refactor(router): make error_type generic in domain_models inorder to avoid conversion of errors in storage_impl (#7537)
Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
This commit is contained in:
@ -10,7 +10,6 @@ use common_utils::{
|
||||
types::TimeRange,
|
||||
};
|
||||
use error_stack::ResultExt;
|
||||
use hyperswitch_domain_models::errors::{StorageError, StorageResult};
|
||||
use opensearch::{
|
||||
auth::Credentials,
|
||||
cert::CertificateValidation,
|
||||
@ -24,7 +23,7 @@ use opensearch::{
|
||||
MsearchParts, OpenSearch, SearchParts,
|
||||
};
|
||||
use serde_json::{json, Map, Value};
|
||||
use storage_impl::errors::ApplicationError;
|
||||
use storage_impl::errors::{ApplicationError, StorageError, StorageResult};
|
||||
use time::PrimitiveDateTime;
|
||||
|
||||
use super::{health_check::HealthCheck, query::QueryResult, types::QueryExecutionError};
|
||||
|
||||
Reference in New Issue
Block a user