summaryrefslogtreecommitdiffhomepage
path: root/cloud
diff options
context:
space:
mode:
authorFrank <[email protected]>2025-09-16 09:01:13 -0400
committerFrank <[email protected]>2025-09-16 09:01:13 -0400
commit32a045f60b6f714a8edecd6052ae814518812d1b (patch)
treee97952d41a521471914006b6d0776bc3d4002c7f /cloud
parent91adc3cd4119d72e5b844cdb1d28135a37630ff8 (diff)
downloadopencode-32a045f60b6f714a8edecd6052ae814518812d1b.tar.gz
opencode-32a045f60b6f714a8edecd6052ae814518812d1b.zip
wip: zen
Diffstat (limited to 'cloud')
-rw-r--r--cloud/app/src/routes/zen/handler.ts1
1 files changed, 1 insertions, 0 deletions
diff --git a/cloud/app/src/routes/zen/handler.ts b/cloud/app/src/routes/zen/handler.ts
index 83040c276..bfa4d0774 100644
--- a/cloud/app/src/routes/zen/handler.ts
+++ b/cloud/app/src/routes/zen/handler.ts
@@ -548,6 +548,7 @@ export async function handler(
.where(
and(
eq(BillingTable.workspaceID, apiKey.workspaceID),
+ eq(BillingTable.reload, true),
lt(BillingTable.balance, centsToMicroCents(Billing.CHARGE_THRESHOLD)),
or(isNull(BillingTable.timeReloadLockedTill), lt(BillingTable.timeReloadLockedTill, sql`now()`)),
),