summaryrefslogtreecommitdiffhomepage
path: root/packages/function/src
diff options
context:
space:
mode:
authorKit Langton <[email protected]>2026-04-15 22:01:02 -0400
committerGitHub <[email protected]>2026-04-16 02:01:02 +0000
commit34213d444681a8953c5693bd01dd754c4e79a30b (patch)
treed8e48758afa5b84afae8cb68410d0213ae5eaa6a /packages/function/src
parent70aeebf2dfe59009ba7254facaa81b8baf73c3cf (diff)
downloadopencode-34213d444681a8953c5693bd01dd754c4e79a30b.tar.gz
opencode-34213d444681a8953c5693bd01dd754c4e79a30b.zip
fix: delete 9 dead functions with zero callers (#22697)
Diffstat (limited to 'packages/function/src')
-rw-r--r--packages/function/src/api.ts14
1 files changed, 0 insertions, 14 deletions
diff --git a/packages/function/src/api.ts b/packages/function/src/api.ts
index d6565b287..4d8b295ec 100644
--- a/packages/function/src/api.ts
+++ b/packages/function/src/api.ts
@@ -12,20 +12,6 @@ type Env = {
WEB_DOMAIN: string
}
-async function getFeishuTenantToken(): Promise<string> {
- const response = await fetch("https://open.feishu.cn/open-apis/auth/v3/tenant_access_token/internal", {
- method: "POST",
- headers: { "Content-Type": "application/json" },
- body: JSON.stringify({
- app_id: Resource.FEISHU_APP_ID.value,
- app_secret: Resource.FEISHU_APP_SECRET.value,
- }),
- })
- const data = (await response.json()) as { tenant_access_token?: string }
- if (!data.tenant_access_token) throw new Error("Failed to get Feishu tenant token")
- return data.tenant_access_token
-}
-
export class SyncServer extends DurableObject<Env> {
constructor(ctx: DurableObjectState, env: Env) {
super(ctx, env)