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
Tim Wilson8e6f4a6f90eb
diff --git a/apps/web/lib/actions/partners/create-program.ts b/apps/web/lib/actions/partners/create-program.tsindex 888b495927..37615ab451 100644--- a/apps/web/lib/actions/partners/create-program.ts+++ b/apps/web/lib/actions/partners/create-program.ts@@ -101,7 +101,6 @@ export const createProgram = async ({workspaceId: workspace.id,name,slug: workspace.slug,- ...(logoUrl && { logo: logoUrl }),domain,url,defaultFolderId: programFolder.id,@@ -150,6 +149,7 @@ export const createProgram = async ({slug: DEFAULT_PARTNER_GROUP.slug,name: DEFAULT_PARTNER_GROUP.name,color: DEFAULT_PARTNER_GROUP.color,+ ...(logoUrl && { logo: logoUrl }),...(createdReward && {[REWARD_EVENT_COLUMN_MAPPING[createdReward.event]]: createdReward.id,}),