This commit is contained in:
Frank
2025-10-10 20:16:44 -04:00
parent ee1eb35269
commit 5b27130d60
3 changed files with 72 additions and 8 deletions

View File

@@ -44,3 +44,8 @@ export const createCheckoutUrl = action(async (workspaceID: string, successUrl:
"use server"
return withActor(() => Billing.generateCheckoutUrl({ successUrl, cancelUrl }), workspaceID)
}, "checkoutUrl")
export const queryBillingInfo = query(async (workspaceID: string) => {
"use server"
return withActor(() => Billing.get(), workspaceID)
}, "billing.get")