This commit is contained in:
Frank
2025-09-16 09:01:13 -04:00
parent 91adc3cd41
commit 32a045f60b

View File

@@ -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()`)),
),