mirror of
https://github.com/aljazceru/opencode.git
synced 2025-12-23 18:54:21 +01:00
wip: cloud
This commit is contained in:
@@ -5,7 +5,7 @@ import { UserTable } from "@opencode/cloud-core/schema/user.sql.js"
|
|||||||
|
|
||||||
export async function GET(evt: APIEvent) {
|
export async function GET(evt: APIEvent) {
|
||||||
return json({
|
return json({
|
||||||
data: Database.use(async (tx) => {
|
data: await Database.use(async (tx) => {
|
||||||
const result = await tx.$count(UserTable)
|
const result = await tx.$count(UserTable)
|
||||||
return result
|
return result
|
||||||
}),
|
}),
|
||||||
|
|||||||
Reference in New Issue
Block a user