mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-11-02 04:04:43 +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:
@ -444,7 +444,7 @@ pub mod routes {
|
||||
&req,
|
||||
json_payload.into_inner(),
|
||||
|state, (auth, user_id): auth::AuthenticationDataWithUserId, payload, _| async move {
|
||||
let user = UserInterface::find_user_by_id(&*state.store, &user_id)
|
||||
let user = UserInterface::find_user_by_id(&*state.global_store, &user_id)
|
||||
.await
|
||||
.change_context(AnalyticsError::UnknownError)?;
|
||||
|
||||
@ -486,7 +486,7 @@ pub mod routes {
|
||||
&req,
|
||||
json_payload.into_inner(),
|
||||
|state, (auth, user_id): auth::AuthenticationDataWithUserId, payload, _| async move {
|
||||
let user = UserInterface::find_user_by_id(&*state.store, &user_id)
|
||||
let user = UserInterface::find_user_by_id(&*state.global_store, &user_id)
|
||||
.await
|
||||
.change_context(AnalyticsError::UnknownError)?;
|
||||
|
||||
@ -528,7 +528,7 @@ pub mod routes {
|
||||
&req,
|
||||
json_payload.into_inner(),
|
||||
|state, (auth, user_id): auth::AuthenticationDataWithUserId, payload, _| async move {
|
||||
let user = UserInterface::find_user_by_id(&*state.store, &user_id)
|
||||
let user = UserInterface::find_user_by_id(&*state.global_store, &user_id)
|
||||
.await
|
||||
.change_context(AnalyticsError::UnknownError)?;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user