Skip to content

Commit 74f7319

Browse files
chore: generate
1 parent ea0f30c commit 74f7319

1 file changed

Lines changed: 5 additions & 8 deletions

File tree

packages/console/app/src/routes/workspace/[id]/go/lite-section.tsx

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -75,14 +75,11 @@ const createLiteCheckoutUrl = action(
7575
async (workspaceID: string, successUrl: string, cancelUrl: string, method?: "alipay" | "upi") => {
7676
"use server"
7777
return json(
78-
await withActor(
79-
async () => {
80-
const data = await Billing.generateLiteCheckoutUrl({ successUrl, cancelUrl, method })
81-
await createReferralFromCookie()
82-
return { error: undefined, data }
83-
},
84-
workspaceID,
85-
).catch((e) => ({
78+
await withActor(async () => {
79+
const data = await Billing.generateLiteCheckoutUrl({ successUrl, cancelUrl, method })
80+
await createReferralFromCookie()
81+
return { error: undefined, data }
82+
}, workspaceID).catch((e) => ({
8683
error: e.message as string,
8784
data: undefined,
8885
})),

0 commit comments

Comments
 (0)