summaryrefslogtreecommitdiffhomepage
path: root/cloud
diff options
context:
space:
mode:
authorDax Raad <[email protected]>2025-09-01 03:10:40 -0400
committerDax Raad <[email protected]>2025-09-01 03:10:40 -0400
commitfbcceeb781bbaf2943bfa08a254a8068babea4ca (patch)
tree65720731253375c397a3d91373be6d47a7026d31 /cloud
parent95775d68b7bba20d7e3cbdbd8b6761833db50de9 (diff)
downloadopencode-fbcceeb781bbaf2943bfa08a254a8068babea4ca.tar.gz
opencode-fbcceeb781bbaf2943bfa08a254a8068babea4ca.zip
wip: cloud
Diffstat (limited to 'cloud')
-rw-r--r--cloud/app/src/routes/workspace/[id].tsx10
1 files changed, 4 insertions, 6 deletions
diff --git a/cloud/app/src/routes/workspace/[id].tsx b/cloud/app/src/routes/workspace/[id].tsx
index c4c18bc66..dfe305bbd 100644
--- a/cloud/app/src/routes/workspace/[id].tsx
+++ b/cloud/app/src/routes/workspace/[id].tsx
@@ -43,12 +43,10 @@ const getBillingInfo = query(async () => {
"use server"
return withActor(async () => {
const actor = Actor.assert("user")
- const [user, billing, payments, usage] = await Promise.all([
- User.fromID(actor.properties.userID),
- Billing.get(),
- Billing.payments(),
- Billing.usages(),
- ])
+ const user = await User.fromID(actor.properties.userID)
+ const billing = await Billing.get()
+ const payments = await Billing.payments()
+ const usage = await Billing.usages()
return { user, billing, payments, usage }
})
}, "billingInfo")