Skip to content

Commit 69bb6c4

Browse files
committed
campaign modifier
1 parent 1fd0fe0 commit 69bb6c4

2 files changed

Lines changed: 9 additions & 1 deletion

File tree

apps/web/app/(ee)/api/cron/campaigns/broadcast/route.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,14 @@ export async function POST(req: Request) {
152152
in: campaignGroupIds,
153153
},
154154
}),
155+
...(campaign.programId === "prog_1K0QHV7MP3PR05CJSCF5VN93X" && {
156+
partner: {
157+
country: "US",
158+
email: {
159+
endsWith: ".edu",
160+
},
161+
},
162+
}),
155163
},
156164
select: {
157165
id: true,

packages/email/src/send-via-resend.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ const resendEmailForOptions = (
2929
const baseOptions = {
3030
to: isProdEnv ? to : "delivered@resend.dev",
3131
from: from || VARIANT_TO_FROM_MAP[variant],
32-
subject: `${!isProdEnv && gitBranch ? `[${gitBranch}] ` : ""}${subject}`,
32+
subject: `${subject}${!isProdEnv && gitBranch ? ` [${gitBranch}]` : ""}`,
3333
bcc,
3434
// if replyTo is set to "noreply@dub.co", don't set replyTo
3535
// else set it to the value of replyTo or fallback to support@dub.co

0 commit comments

Comments
 (0)