diff options
| author | Dax Raad <[email protected]> | 2025-08-30 15:20:40 -0400 |
|---|---|---|
| committer | Dax Raad <[email protected]> | 2025-08-30 15:20:51 -0400 |
| commit | c676f12306b58a87006e0f2114f5c7f2cb25a49d (patch) | |
| tree | 326faf9f4209aa11011ea23261c03cdc70b72e54 /cloud/app/src/routes/workspace | |
| parent | dac821229eba42d8680895db068c3ce1632d046c (diff) | |
| download | opencode-c676f12306b58a87006e0f2114f5c7f2cb25a49d.tar.gz opencode-c676f12306b58a87006e0f2114f5c7f2cb25a49d.zip | |
wip: cloud
Diffstat (limited to 'cloud/app/src/routes/workspace')
| -rw-r--r-- | cloud/app/src/routes/workspace/[id].tsx | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/cloud/app/src/routes/workspace/[id].tsx b/cloud/app/src/routes/workspace/[id].tsx index 416128867..ccdfe42f5 100644 --- a/cloud/app/src/routes/workspace/[id].tsx +++ b/cloud/app/src/routes/workspace/[id].tsx @@ -13,26 +13,27 @@ import { Actor } from "@opencode/cloud-core/actor.js" // Keys related queries and actions ///////////////////////////////////// -const listKeys = query(async () => { + +const listKeys = query(() => { "use server" return withActor(() => Key.list()) -}, "keys") +}, "key.list") const createKey = action(async (name: string) => { "use server" return json( withActor(() => Key.create({ name })), - { revalidate: "keys" }, + { revalidate: listKeys.key }, ) -}, "createKey") +}, "key.create") const removeKey = action(async (id: string) => { "use server" return json( withActor(() => Key.remove({ id })), - { revalidate: "keys" }, + { revalidate: listKeys.key }, ) -}, "removeKey") +}, "key.remove") ///////////////////////////////////// // Billing related queries and actions |
