diff options
| author | Frank <[email protected]> | 2025-09-11 17:21:49 -0400 |
|---|---|---|
| committer | Frank <[email protected]> | 2025-09-11 17:22:05 -0400 |
| commit | 3abca8fd4b08f5d122c2352fcee64755a028228a (patch) | |
| tree | 338a442124fd0f9aa7bba265558594f961bcc156 /cloud/app | |
| parent | f5b3992479b616b5900a5f752d8928980837426e (diff) | |
| download | opencode-3abca8fd4b08f5d122c2352fcee64755a028228a.tar.gz opencode-3abca8fd4b08f5d122c2352fcee64755a028228a.zip | |
wip: zen
Diffstat (limited to 'cloud/app')
| -rw-r--r-- | cloud/app/src/util/zen.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cloud/app/src/util/zen.ts b/cloud/app/src/util/zen.ts index 47cec9f6f..d02a9c614 100644 --- a/cloud/app/src/util/zen.ts +++ b/cloud/app/src/util/zen.ts @@ -1,6 +1,6 @@ import type { APIEvent } from "@solidjs/start/server" import path from "node:path" -import { Database, eq, sql } from "@opencode/cloud-core/drizzle/index.js" +import { and, Database, eq, isNull, sql } from "@opencode/cloud-core/drizzle/index.js" import { KeyTable } from "@opencode/cloud-core/schema/key.sql.js" import { BillingTable, UsageTable } from "@opencode/cloud-core/schema/billing.sql.js" import { centsToMicroCents } from "@opencode/cloud-core/util/price.js" @@ -390,7 +390,7 @@ export async function handler( workspaceID: KeyTable.workspaceID, }) .from(KeyTable) - .where(eq(KeyTable.key, apiKey)) + .where(and(eq(KeyTable.key, apiKey), isNull(KeyTable.timeDeleted))) .then((rows) => rows[0]), ) |
