diff options
| author | Dax Raad <[email protected]> | 2025-09-03 13:10:57 -0400 |
|---|---|---|
| committer | Dax Raad <[email protected]> | 2025-09-03 13:10:57 -0400 |
| commit | 48a79b11738c3e55f25b49497b8ff78dfaee1222 (patch) | |
| tree | b5991665a2843c7edecd157c84bda5138ccd5d68 /cloud/app/src/context/auth.withActor.ts | |
| parent | 59e550271d3c9bc50ebb8b7ba0d04eacd1e49e1a (diff) | |
| download | opencode-48a79b11738c3e55f25b49497b8ff78dfaee1222.tar.gz opencode-48a79b11738c3e55f25b49497b8ff78dfaee1222.zip | |
wip: make less shit
Diffstat (limited to 'cloud/app/src/context/auth.withActor.ts')
| -rw-r--r-- | cloud/app/src/context/auth.withActor.ts | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/cloud/app/src/context/auth.withActor.ts b/cloud/app/src/context/auth.withActor.ts index 5c87f1338..4cfd5c3e0 100644 --- a/cloud/app/src/context/auth.withActor.ts +++ b/cloud/app/src/context/auth.withActor.ts @@ -1,8 +1,7 @@ import { Actor } from "@opencode/cloud-core/actor.js" import { getActor } from "./auth" -import { getRequestEvent } from "solid-js/web" -export async function withActor<T>(fn: () => T) { - const actor = await getActor() +export async function withActor<T>(fn: () => T, workspace?: string) { + const actor = await getActor(workspace) return Actor.provide(actor.type, actor.properties, fn) } |
