The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
Update create-program.ts
Kiran K84a15886bd2f
diff --git a/apps/web/lib/actions/partners/create-program.ts b/apps/web/lib/actions/partners/create-program.tsindex c39f88d638..f2b934815f 100644--- a/apps/web/lib/actions/partners/create-program.ts+++ b/apps/web/lib/actions/partners/create-program.ts@@ -152,10 +152,12 @@ export const createProgram = async ({programId: program.id,action: "import-campaign",});- } else if (importSource === "tolt") {+ } else if (importSource === "tolt" && tolt?.id) {await toltImporter.queue({+ userId: user.id,programId: program.id,- action: "import-affiliates",+ toltProgramId: tolt.id,+ action: "import-partners",});} else if (importSource === "partnerstack") {await partnerStackImporter.queue({