From 15227b9c6ee8b89a7ae9158ea37607d426cf2f8c Mon Sep 17 00:00:00 2001 From: M1 Date: Tue, 17 Mar 2026 06:51:27 +0400 Subject: [PATCH] fix: key_plain -> key in dashboard query --- apps/web/src/routes/dashboard.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/web/src/routes/dashboard.ts b/apps/web/src/routes/dashboard.ts index a0defa5..ecd4984 100644 --- a/apps/web/src/routes/dashboard.ts +++ b/apps/web/src/routes/dashboard.ts @@ -141,7 +141,7 @@ export const dashboard = new Elysia() if (!accountId) return redirect("/dashboard"); const [acc] = await sql`SELECT id, email_hash, created_at FROM accounts WHERE id = ${accountId}`; - const apiKeys = await sql`SELECT id, key_plain, label, created_at, last_used_at FROM api_keys WHERE account_id = ${accountId} ORDER BY created_at DESC`; + const apiKeys = await sql`SELECT id, key, label, created_at, last_used_at FROM api_keys WHERE account_id = ${accountId} ORDER BY created_at DESC`; const loginKey = cookie?.pingql_key?.value ?? null; return html("settings", { nav: "settings", account: acc, apiKeys, accountId, loginKey });