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.

Process Stripe test events for workspaces with a staging workspace

Kiran K35b144552d72
diff --git a/apps/web/app/(ee)/api/stripe/integration/webhook/route.ts b/apps/web/app/(ee)/api/stripe/integration/webhook/route.ts
index 61742dbf06..004438977d 100644
--- a/apps/web/app/(ee)/api/stripe/integration/webhook/route.ts
+++ b/apps/web/app/(ee)/api/stripe/integration/webhook/route.ts
@@ -115,7 +115,6 @@ export const POST = withAxiom(async (req: Request) => {
defaultProgramId: true,
webhookEnabled: true,
environment: true,
- stagingWorkspaceId: true,
},
});
@@ -126,13 +125,6 @@ export const POST = withAxiom(async (req: Request) => {
});
}
- if ((mode === "test" || mode === "sandbox") && workspace.stagingWorkspaceId) {
- return logAndRespond({
- eventType: event.type,
- response: `Skipping ${mode} event for workspace ${workspace.id} because it has a staging workspace.`,
- });
- }
-
console.log("Workspace found", workspace);
let result: WebhookHandlerResponse = {