The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
Update import-campaign.ts
Steven Teyea23929e9266
diff --git a/apps/web/lib/rewardful/import-campaign.ts b/apps/web/lib/rewardful/import-campaign.tsindex 0efa79dc31..b187ffc7f8 100644--- a/apps/web/lib/rewardful/import-campaign.ts+++ b/apps/web/lib/rewardful/import-campaign.ts@@ -49,9 +49,9 @@ export async function importCampaign({ programId }: { programId: string }) {return await rewardfulImporter.queue({programId,- // we will only need to assign rewardId to affiliates if it's not- // the defaultRewardId of the program- ...(!defaultRewardId && { rewardId: reward.id }),+ // we will only need to assign rewardId to affiliates+ // if it's not the defaultRewardId of the program (there's already a defaultRewardId)+ ...(defaultRewardId && { rewardId: reward.id }),action: "import-affiliates",});}