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.

campaign modifier

Steven Tey69bb6c44d16d
diff --git a/apps/web/app/(ee)/api/cron/campaigns/broadcast/route.ts b/apps/web/app/(ee)/api/cron/campaigns/broadcast/route.ts
index dedc09acb2..e2adf25127 100644
--- a/apps/web/app/(ee)/api/cron/campaigns/broadcast/route.ts
+++ b/apps/web/app/(ee)/api/cron/campaigns/broadcast/route.ts
@@ -152,6 +152,14 @@ export async function POST(req: Request) {
in: campaignGroupIds,
},
}),
+ ...(campaign.programId === "prog_1K0QHV7MP3PR05CJSCF5VN93X" && {
+ partner: {
+ country: "US",
+ email: {
+ endsWith: ".edu",
+ },
+ },
+ }),
},
select: {
id: true,
diff --git a/packages/email/src/send-via-resend.ts b/packages/email/src/send-via-resend.ts
index 416b7d3bc7..9d1f439c64 100644
--- a/packages/email/src/send-via-resend.ts
+++ b/packages/email/src/send-via-resend.ts
@@ -29,7 +29,7 @@ const resendEmailForOptions = (
const baseOptions = {
to: isProdEnv ? to : "[email protected]",
from: from || VARIANT_TO_FROM_MAP[variant],
- subject: `${!isProdEnv && gitBranch ? `[${gitBranch}] ` : ""}${subject}`,
+ subject: `${subject}${!isProdEnv && gitBranch ? ` [${gitBranch}]` : ""}`,
bcc,
// if replyTo is set to "[email protected]", don't set replyTo
// else set it to the value of replyTo or fallback to [email protected]