fix: Remove Mitai-specific columns from session query
All checks were successful
Deploy Development / deploy (push) Successful in 33s
All checks were successful
Deploy Development / deploy (push) Successful in 33s
This commit is contained in:
parent
c4b1b54f61
commit
08326bdcc6
|
|
@ -51,7 +51,7 @@ def get_session(token: str):
|
||||||
with get_db() as conn:
|
with get_db() as conn:
|
||||||
cur = get_cursor(conn)
|
cur = get_cursor(conn)
|
||||||
cur.execute(
|
cur.execute(
|
||||||
"SELECT s.*, p.role, p.name, p.ai_enabled, p.ai_limit_day, p.export_enabled "
|
"SELECT s.*, p.role, p.name "
|
||||||
"FROM sessions s JOIN profiles p ON s.profile_id=p.id "
|
"FROM sessions s JOIN profiles p ON s.profile_id=p.id "
|
||||||
"WHERE s.token=%s AND s.expires_at > CURRENT_TIMESTAMP",
|
"WHERE s.token=%s AND s.expires_at > CURRENT_TIMESTAMP",
|
||||||
(token,)
|
(token,)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user