feat(sqlalchemy): cleanup fixes

This commit is contained in:
Jonathan Rohde
2024-06-24 09:56:42 +02:00
parent 070d9083d5
commit 320e658595
2 changed files with 1 additions and 4 deletions

View File

@@ -24,9 +24,7 @@ async def connect(sid, environ, auth):
data = decode_token(auth["token"])
if data is not None and "id" in data:
from apps.webui.internal.db import SessionLocal
user = Users.get_user_by_id(SessionLocal(), data["id"])
user = Users.get_user_by_id(data["id"])
if user:
SESSION_POOL[sid] = user.id