mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-11-01 19:42:27 +08:00
feat(multitenancy): move users and tenants to global schema (#4781)
Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com> Co-authored-by: Arun Raj M <jarnura47@gmail.com>
This commit is contained in:
@ -57,7 +57,7 @@ impl UserFromToken {
|
||||
|
||||
pub async fn get_user_from_db(&self, state: &SessionState) -> UserResult<UserFromStorage> {
|
||||
let user = state
|
||||
.store
|
||||
.global_store
|
||||
.find_user_by_id(&self.user_id)
|
||||
.await
|
||||
.change_context(UserErrors::InternalServerError)?;
|
||||
@ -180,7 +180,7 @@ pub async fn get_user_from_db_by_email(
|
||||
email: domain::UserEmail,
|
||||
) -> CustomResult<UserFromStorage, StorageError> {
|
||||
state
|
||||
.store
|
||||
.global_store
|
||||
.find_user_by_email(&email.into_inner())
|
||||
.await
|
||||
.map(UserFromStorage::from)
|
||||
|
||||
Reference in New Issue
Block a user