From 8efe59e97a1bfc4c9068664f9391653b49de5e3d Mon Sep 17 00:00:00 2001 From: "Richard Kuo (Onyx)" Date: Tue, 20 May 2025 10:16:02 -0700 Subject: [PATCH] database isn't a var! --- backend/onyx/auth/users.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/onyx/auth/users.py b/backend/onyx/auth/users.py index d8970aa73f2..16b99a02dd5 100644 --- a/backend/onyx/auth/users.py +++ b/backend/onyx/auth/users.py @@ -306,7 +306,6 @@ async def create( db_session, User, OAuthAccount ) self.user_db = tenant_user_db - self.database = tenant_user_db # is this even a real var? if hasattr(user_create, "role"): user_create.role = UserRole.BASIC @@ -415,12 +414,13 @@ async def oauth_callback( verify_email_in_whitelist(account_email, tenant_id) verify_email_domain(account_email) + # NOTE(rkuo): If this UserManager is instantiated per connection + # should we even be doing this here? if MULTI_TENANT: tenant_user_db = SQLAlchemyUserAdminDB[User, uuid.UUID]( db_session, User, OAuthAccount ) self.user_db = tenant_user_db - self.database = tenant_user_db oauth_account_dict = { "oauth_name": oauth_name,