mirror of
https://gitea.toothfairyai.com/ToothFairyAI/tf_code.git
synced 2026-03-30 05:43:55 +00:00
wip: cloud
This commit is contained in:
parent
95775d68b7
commit
fbcceeb781
@ -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")
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user