From 82509e86041a5d1a00da47c20d4e28fb07a84e99 Mon Sep 17 00:00:00 2001 From: Frank Date: Sat, 4 Oct 2025 01:12:22 -0400 Subject: wip: zen --- packages/console/app/src/routes/workspace/key-section.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'packages/console/app/src') diff --git a/packages/console/app/src/routes/workspace/key-section.tsx b/packages/console/app/src/routes/workspace/key-section.tsx index a2bd380ea..d49a9c0bd 100644 --- a/packages/console/app/src/routes/workspace/key-section.tsx +++ b/packages/console/app/src/routes/workspace/key-section.tsx @@ -6,6 +6,7 @@ import { withActor } from "~/context/auth.withActor" import { createStore } from "solid-js/store" import { formatDateUTC, formatDateForTable } from "./common" import styles from "./key-section.module.css" +import { Actor } from "@opencode/console-core/actor.js" const removeKey = action(async (form: FormData) => { "use server" @@ -25,7 +26,10 @@ const createKey = action(async (form: FormData) => { return json( await withActor( () => - Key.create({ name }) + Key.create({ + userID: Actor.assert("user").properties.userID, + name, + }) .then((data) => ({ error: undefined, data })) .catch((e) => ({ error: e.message as string })), workspaceID, -- cgit v1.2.3