From 08326bdcc683d4803ab902f7e5fd432c26abe0ac Mon Sep 17 00:00:00 2001 From: Lars Date: Wed, 22 Apr 2026 06:56:57 +0200 Subject: [PATCH] fix: Remove Mitai-specific columns from session query --- backend/auth.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/auth.py b/backend/auth.py index f255879..e4acbea 100644 --- a/backend/auth.py +++ b/backend/auth.py @@ -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,)