mirror of
https://github.com/aljazceru/opencode.git
synced 2025-12-29 05:34:19 +01:00
wip: cloud
This commit is contained in:
@@ -43,12 +43,10 @@ const getBillingInfo = query(async () => {
|
|||||||
"use server"
|
"use server"
|
||||||
return withActor(async () => {
|
return withActor(async () => {
|
||||||
const actor = Actor.assert("user")
|
const actor = Actor.assert("user")
|
||||||
const [user, billing, payments, usage] = await Promise.all([
|
const user = await User.fromID(actor.properties.userID)
|
||||||
User.fromID(actor.properties.userID),
|
const billing = await Billing.get()
|
||||||
Billing.get(),
|
const payments = await Billing.payments()
|
||||||
Billing.payments(),
|
const usage = await Billing.usages()
|
||||||
Billing.usages(),
|
|
||||||
])
|
|
||||||
return { user, billing, payments, usage }
|
return { user, billing, payments, usage }
|
||||||
})
|
})
|
||||||
}, "billingInfo")
|
}, "billingInfo")
|
||||||
|
|||||||
Reference in New Issue
Block a user