Skip to content

Commit

Permalink
fix: hack
Browse files Browse the repository at this point in the history
  • Loading branch information
ThisIsMani committed Nov 10, 2023
1 parent f11212e commit 4cff8ea
Show file tree
Hide file tree
Showing 9 changed files with 15 additions and 4 deletions.
1 change: 1 addition & 0 deletions crates/router/src/consts.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#[cfg(feature = "olap")]
pub mod user;

// ID generation
Expand Down
1 change: 1 addition & 0 deletions crates/router/src/core.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ pub mod payments;
pub mod payouts;
pub mod refunds;
pub mod routing;
#[cfg(feature = "olap")]
pub mod user;
pub mod utils;
#[cfg(all(feature = "olap", feature = "kms"))]
Expand Down
2 changes: 2 additions & 0 deletions crates/router/src/core/errors.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ pub mod api_error_response;
pub mod customers_error_response;
pub mod error_handlers;
pub mod transformers;
#[cfg(feature = "olap")]
pub mod user;
pub mod utils;

Expand All @@ -14,6 +15,7 @@ use diesel_models::errors as storage_errors;
pub use redis_interface::errors::RedisError;
use scheduler::errors as sch_errors;
use storage_impl::errors as storage_impl_errors;
#[cfg(feature = "olap")]
pub use user::*;

pub use self::{
Expand Down
1 change: 1 addition & 0 deletions crates/router/src/routes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ pub mod payouts;
pub mod refunds;
#[cfg(feature = "olap")]
pub mod routing;
#[cfg(feature = "olap")]
pub mod user;
#[cfg(all(feature = "olap", feature = "kms"))]
pub mod verification;
Expand Down
4 changes: 2 additions & 2 deletions crates/router/src/routes/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ use super::routing as cloud_routing;
#[cfg(all(feature = "olap", feature = "kms"))]
use super::verification::{apple_pay_merchant_registration, retrieve_apple_pay_verified_domains};
#[cfg(feature = "olap")]
use super::{admin::*, api_keys::*, disputes::*, files::*, gsm::*};
use super::{cache::*, health::*, payment_link::*, user::*};
use super::{admin::*, api_keys::*, disputes::*, files::*, gsm::*, user::*};
use super::{cache::*, health::*, payment_link::*};
#[cfg(any(feature = "olap", feature = "oltp"))]
use super::{configs::*, customers::*, mandates::*, payments::*, refunds::*};
#[cfg(feature = "oltp")]
Expand Down
1 change: 1 addition & 0 deletions crates/router/src/services.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
pub mod api;
pub mod authentication;
pub mod encryption;
#[cfg(feature = "olap")]
pub mod jwt;
pub mod logger;

Expand Down
6 changes: 4 additions & 2 deletions crates/router/src/services/authentication.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
#[cfg(feature = "olap")]
use super::jwt;
#[cfg(feature = "olap")]
use crate::consts;
use actix_web::http::header::HeaderMap;
use api_models::{payment_methods::PaymentMethodListRequest, payments};
use async_trait::async_trait;
Expand All @@ -9,10 +13,8 @@ use jsonwebtoken::{decode, Algorithm, DecodingKey, Validation};
use masking::{PeekInterface, StrongSecret};
use serde::Serialize;

use super::jwt;
use crate::{
configs::settings,
consts,
core::{
api_keys,
errors::{self, utils::StorageErrorExt, RouterResult},
Expand Down
2 changes: 2 additions & 0 deletions crates/router/src/types/domain.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,13 @@ mod merchant_account;
mod merchant_connector_account;
mod merchant_key_store;
pub mod types;
#[cfg(feature = "olap")]
pub mod user;

pub use address::*;
pub use customer::*;
pub use merchant_account::*;
pub use merchant_connector_account::*;
pub use merchant_key_store::*;
#[cfg(feature = "olap")]
pub use user::*;
1 change: 1 addition & 0 deletions crates/router/src/utils.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
pub mod custom_serde;
pub mod db_utils;
pub mod ext_traits;
#[cfg(feature = "olap")]
pub mod user;

#[cfg(feature = "kv_store")]
Expand Down

0 comments on commit 4cff8ea

Please sign in to comment.