The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
Update route.ts
Kiran K304386e91458
diff --git a/apps/web/app/(ee)/api/workflows/partner-approved/route.ts b/apps/web/app/(ee)/api/workflows/partner-approved/route.tsindex 37289e8deb..5a392d253d 100644--- a/apps/web/app/(ee)/api/workflows/partner-approved/route.ts+++ b/apps/web/app/(ee)/api/workflows/partner-approved/route.ts@@ -21,6 +21,22 @@ const payloadSchema = z.object({type Payload = z.infer<typeof payloadSchema>;+/**+ * Partner Approved Workflow+ *+ * This workflow is triggered when a partner's application to join a program is approved.+ * It performs three main steps in sequence:+ *+ * 1. **Create Default Links**: Creates partner-specific default links based on the group's+ * configuration.+ *+ * 2. **Send Email Notification**: Sends an approval email to all partner users who have+ * opted in to receive application approval notifications.+ *+ * 3. **Send Webhook**: Notifies the workspace via webhook that a new partner has been+ * enrolled in the program.+ */+// POST /api/workflows/partner-approvedexport const { POST } = serve<Payload>(async (context) => {