From 15bd9d5ed9ac91a804bda2c381f0c14d7fd10507 Mon Sep 17 00:00:00 2001 From: bruno Date: Tue, 14 Jul 2026 12:21:10 -0400 Subject: [PATCH] fix: github_routes use access_token (not github_token) user_oauth_tokens has generic access_token column, not github_token/gitea_token --- app/routers/github_routes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/routers/github_routes.py b/app/routers/github_routes.py index 71f43fd..2b3bc28 100644 --- a/app/routers/github_routes.py +++ b/app/routers/github_routes.py @@ -15,7 +15,7 @@ async def github_status(request: Request): return {"linked": False} with get_conn() as conn: row = conn.execute( - "SELECT github_token FROM user_oauth_tokens WHERE user_id=? AND provider='github' AND github_token IS NOT NULL AND github_token != ''", + "SELECT access_token FROM user_oauth_tokens WHERE user_id=? AND provider='github' AND access_token IS NOT NULL AND access_token != ''", (user["id"],) ).fetchone() return {"linked": row is not None}