diff options
| author | Dax Raad <[email protected]> | 2025-09-01 02:55:10 -0400 |
|---|---|---|
| committer | Dax Raad <[email protected]> | 2025-09-01 02:55:10 -0400 |
| commit | cfcfceca6d1a0658cecf6f343a283028560a8fde (patch) | |
| tree | 1df4f279899cfd8400c91eb270ccbd7e2630f202 /cloud/app/src | |
| parent | 9f8899a9f9fff1724ff6ba5fd4f9db81d13c8e69 (diff) | |
| download | opencode-cfcfceca6d1a0658cecf6f343a283028560a8fde.tar.gz opencode-cfcfceca6d1a0658cecf6f343a283028560a8fde.zip | |
wip: cloud
Diffstat (limited to 'cloud/app/src')
| -rw-r--r-- | cloud/app/src/routes/debug/index.ts | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/cloud/app/src/routes/debug/index.ts b/cloud/app/src/routes/debug/index.ts index 1753cf59d..420cff2a4 100644 --- a/cloud/app/src/routes/debug/index.ts +++ b/cloud/app/src/routes/debug/index.ts @@ -1,9 +1,13 @@ import type { APIEvent } from "@solidjs/start/server" -import { Resource } from "@opencode/cloud-resource" import { json } from "@solidjs/router" +import { Database } from "@opencode/cloud-core/drizzle/index.js" +import { UserTable } from "@opencode/cloud-core/schema/user.sql.js" export async function GET(evt: APIEvent) { return json({ - data: Resource.Database.host, + data: Database.use(async (tx) => { + const result = await tx.$count(UserTable) + return result + }), }) } |
