mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-11-01 19:42:27 +08:00
refactor(v1v2): refactor database queries for v1 and v2 (#7244)
This commit is contained in:
@ -403,6 +403,7 @@ impl MerchantAccountCreateBridge for api::MerchantAccountCreate {
|
||||
pm_collect_link_config,
|
||||
version: hyperswitch_domain_models::consts::API_VERSION,
|
||||
is_platform_account: false,
|
||||
product_type: None,
|
||||
},
|
||||
)
|
||||
}
|
||||
@ -671,6 +672,7 @@ impl MerchantAccountCreateBridge for api::MerchantAccountCreate {
|
||||
organization_id: organization.get_organization_id(),
|
||||
recon_status: diesel_models::enums::ReconStatus::NotRequested,
|
||||
is_platform_account: false,
|
||||
product_type: None,
|
||||
}),
|
||||
)
|
||||
}
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
use diesel_models::configs::ConfigUpdateInternal;
|
||||
use error_stack::{report, ResultExt};
|
||||
use error_stack::report;
|
||||
use router_env::{instrument, tracing};
|
||||
use storage_impl::redis::cache::{self, CacheKind, CONFIG_CACHE};
|
||||
|
||||
@ -191,7 +191,6 @@ impl ConfigInterface for MockDb {
|
||||
let mut configs = self.configs.lock().await;
|
||||
|
||||
let config_new = storage::Config {
|
||||
id: i32::try_from(configs.len()).change_context(errors::StorageError::MockDbError)?,
|
||||
key: config.key,
|
||||
config: config.config,
|
||||
};
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
use error_stack::{report, ResultExt};
|
||||
use error_stack::report;
|
||||
use router_env::{instrument, tracing};
|
||||
|
||||
use super::{MockDb, Store};
|
||||
@ -88,8 +88,6 @@ impl LockerMockUpInterface for MockDb {
|
||||
}
|
||||
|
||||
let created_locker = storage::LockerMockUp {
|
||||
id: i32::try_from(locked_lockers.len())
|
||||
.change_context(errors::StorageError::MockDbError)?,
|
||||
card_id: new.card_id,
|
||||
external_id: new.external_id,
|
||||
card_fingerprint: new.card_fingerprint,
|
||||
|
||||
Reference in New Issue
Block a user