mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-12 12:25:20 +00:00
refac
This commit is contained in:
parent
217f4daef0
commit
7693d0e2b0
1 changed files with 4 additions and 5 deletions
|
|
@ -170,7 +170,7 @@ class OAuthSessionTable:
|
|||
if session:
|
||||
session.token = self._decrypt_token(session.token)
|
||||
return OAuthSessionModel.model_validate(session)
|
||||
)
|
||||
|
||||
return None
|
||||
except Exception as e:
|
||||
log.error(f"Error getting OAuth session by ID: {e}")
|
||||
|
|
@ -182,7 +182,6 @@ class OAuthSessionTable:
|
|||
with get_db() as db:
|
||||
sessions = db.query(OAuthSession).filter_by(user_id=user_id).all()
|
||||
|
||||
|
||||
results = []
|
||||
for session in sessions:
|
||||
session.token = self._decrypt_token(session.token)
|
||||
|
|
|
|||
Loading…
Reference in a new issue