fix: github_routes use access_token (not github_token)
FlowDeck CI / test (push) Failing after 4s
FlowDeck CI / docker (push) Has been skipped

user_oauth_tokens has generic access_token column, not github_token/gitea_token
This commit is contained in:
2026-07-14 12:21:10 -04:00
parent 29ef0fb054
commit 15bd9d5ed9
+1 -1
View File
@@ -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}