chore: generate

This commit is contained in:
opencode-agent[bot] 2026-05-30 08:56:10 +00:00
parent 6a2cd816b7
commit 69b2784b13

View File

@ -75,14 +75,11 @@ const createLiteCheckoutUrl = action(
async (workspaceID: string, successUrl: string, cancelUrl: string, method?: "alipay" | "upi") => {
"use server"
return json(
await withActor(
async () => {
const data = await Billing.generateLiteCheckoutUrl({ successUrl, cancelUrl, method })
await createReferralFromCookie()
return { error: undefined, data }
},
workspaceID,
).catch((e) => ({
await withActor(async () => {
const data = await Billing.generateLiteCheckoutUrl({ successUrl, cancelUrl, method })
await createReferralFromCookie()
return { error: undefined, data }
}, workspaceID).catch((e) => ({
error: e.message as string,
data: undefined,
})),