Skip to content

Commit 43011b3

Browse files
rkuo-danswerRichard Kuo (Onyx)
authored andcommitted
database isn't a var! (onyx-dot-app#4741)
Co-authored-by: Richard Kuo (Onyx) <rkuo@onyx.app>
1 parent 7738c2c commit 43011b3

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

backend/onyx/auth/users.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,6 @@ async def create(
306306
db_session, User, OAuthAccount
307307
)
308308
self.user_db = tenant_user_db
309-
self.database = tenant_user_db # is this even a real var?
310309

311310
if hasattr(user_create, "role"):
312311
user_create.role = UserRole.BASIC
@@ -426,7 +425,6 @@ async def _inner(session: AsyncSession) -> User: # noqa: WPS430
426425

427426
# Point user manager at the session-bound DB instance
428427
self.user_db = tenant_user_db
429-
self.database = tenant_user_db
430428

431429
oauth_account_dict = {
432430
"oauth_name": oauth_name,

0 commit comments

Comments
 (0)