fix: Remove Mitai-specific columns from session query
All checks were successful
Deploy Development / deploy (push) Successful in 33s

This commit is contained in:
Lars 2026-04-22 06:56:57 +02:00
parent c4b1b54f61
commit 08326bdcc6

View File

@ -51,7 +51,7 @@ def get_session(token: str):
with get_db() as conn:
cur = get_cursor(conn)
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 "
"WHERE s.token=%s AND s.expires_at > CURRENT_TIMESTAMP",
(token,)