diff options
| author | Frank <[email protected]> | 2026-01-14 21:20:23 -0500 |
|---|---|---|
| committer | Frank <[email protected]> | 2026-01-14 21:20:26 -0500 |
| commit | e03932e586e89cc30015e6a5006ed5e83881a05c (patch) | |
| tree | 5655f0c063b717399a71a07625a8d6db8a942a5f /packages/console/core/src/billing.ts | |
| parent | 6b019a125a93a9816f9ddec17dc04d2c6e9b4257 (diff) | |
| download | opencode-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.ts | 17 |
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]), |
