summaryrefslogtreecommitdiffhomepage
path: root/packages/console/core/src/billing.ts
diff options
context:
space:
mode:
authorFrank <[email protected]>2026-01-14 21:20:23 -0500
committerFrank <[email protected]>2026-01-14 21:20:26 -0500
commite03932e586e89cc30015e6a5006ed5e83881a05c (patch)
tree5655f0c063b717399a71a07625a8d6db8a942a5f /packages/console/core/src/billing.ts
parent6b019a125a93a9816f9ddec17dc04d2c6e9b4257 (diff)
downloadopencode-e03932e586e89cc30015e6a5006ed5e83881a05c.tar.gz
opencode-e03932e586e89cc30015e6a5006ed5e83881a05c.zip
zen: black usage
Diffstat (limited to 'packages/console/core/src/billing.ts')
-rw-r--r--packages/console/core/src/billing.ts17
1 files changed, 1 insertions, 16 deletions
diff --git a/packages/console/core/src/billing.ts b/packages/console/core/src/billing.ts
index 181055c4e..f052e6fc6 100644
--- a/packages/console/core/src/billing.ts
+++ b/packages/console/core/src/billing.ts
@@ -25,22 +25,7 @@ export namespace Billing {
export const get = async () => {
return Database.use(async (tx) =>
tx
- .select({
- customerID: BillingTable.customerID,
- subscriptionID: BillingTable.subscriptionID,
- paymentMethodID: BillingTable.paymentMethodID,
- paymentMethodType: BillingTable.paymentMethodType,
- paymentMethodLast4: BillingTable.paymentMethodLast4,
- balance: BillingTable.balance,
- reload: BillingTable.reload,
- reloadAmount: BillingTable.reloadAmount,
- reloadTrigger: BillingTable.reloadTrigger,
- monthlyLimit: BillingTable.monthlyLimit,
- monthlyUsage: BillingTable.monthlyUsage,
- timeMonthlyUsageUpdated: BillingTable.timeMonthlyUsageUpdated,
- reloadError: BillingTable.reloadError,
- timeReloadError: BillingTable.timeReloadError,
- })
+ .select()
.from(BillingTable)
.where(eq(BillingTable.workspaceID, Actor.workspace()))
.then((r) => r[0]),