diff options
Diffstat (limited to 'packages/console/app/src')
| -rw-r--r-- | packages/console/app/src/routes/workspace/key-section.tsx | 6 |
1 files changed, 5 insertions, 1 deletions
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, |
