diff options
Diffstat (limited to 'cloud/core/src/billing.ts')
| -rw-r--r-- | cloud/core/src/billing.ts | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/cloud/core/src/billing.ts b/cloud/core/src/billing.ts index 620a72212..ee44a24ef 100644 --- a/cloud/core/src/billing.ts +++ b/cloud/core/src/billing.ts @@ -80,14 +80,12 @@ export namespace Billing { cacheWriteTokens: input.cacheWriteTokens, cost, }) - const [updated] = await tx + await tx .update(BillingTable) .set({ balance: sql`${BillingTable.balance} - ${cost}`, }) .where(eq(BillingTable.workspaceID, workspaceID)) - .returning() - return updated.balance }) }, ) |
