Skip to content

armgit / dub

Public Imported from GitHub
0

The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.

Update safe-action.ts

Kiran K0bbbfa63fc67
diff --git a/apps/web/lib/actions/safe-action.ts b/apps/web/lib/actions/safe-action.ts
index 70df44c901..5af19aca4a 100644
--- a/apps/web/lib/actions/safe-action.ts
+++ b/apps/web/lib/actions/safe-action.ts
@@ -68,14 +68,12 @@ export const authActionClient = actionClient.use(
throw new Error("Workspace not found.");
}
- const { role } = workspace.users[0];
-
return next({
ctx: {
user: session.user,
workspace: {
...workspace,
- role,
+ role: workspace.users[0].role,
plan: workspace.plan as PlanProps,
},
},