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.

make sure to use the newPlanName in updateWorkspacePlan

Steven Tey46ff82baea3f
diff --git a/apps/web/app/(ee)/api/stripe/webhook/utils/update-workspace-plan.ts b/apps/web/app/(ee)/api/stripe/webhook/utils/update-workspace-plan.ts
index 0ac34f07f1..0b89c58ff5 100644
--- a/apps/web/app/(ee)/api/stripe/webhook/utils/update-workspace-plan.ts
+++ b/apps/web/app/(ee)/api/stripe/webhook/utils/update-workspace-plan.ts
@@ -91,7 +91,7 @@ export async function updateWorkspacePlan({
id: workspace.defaultProgramId,
},
data: {
- messagingEnabledAt: getPlanCapabilities(workspace.plan)
+ messagingEnabledAt: getPlanCapabilities(newPlanName)
.canMessagePartners
? new Date()
: null,