The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
return early notifyPartnerRewardChange
Steven Teye3a558d1cf5d
diff --git a/apps/web/lib/api/partners/notify-partner-reward-change.ts b/apps/web/lib/api/partners/notify-partner-reward-change.tsindex d8c1e5ae4f..1b28b2dcbb 100644--- a/apps/web/lib/api/partners/notify-partner-reward-change.ts+++ b/apps/web/lib/api/partners/notify-partner-reward-change.ts@@ -30,6 +30,12 @@ export async function notifyPartnerRewardChange({users,idempotencyKey,}: NotifyPartnerRewardChangeParams) {+ // TODO: Remove after Aug 24+ if (program.id === "prog_1JWVR53QX1NM7NDEK62E3J19H") {+ console.log("Skipping notification for program", program.id);+ return;+ }+const usersWithEmail = users.filter((user): user is Pick<User, "name"> & { email: string } =>user.email !== null,diff --git a/apps/web/lib/constants/program.ts b/apps/web/lib/constants/program.tsindex c3cb7e2132..fc7efb9ee7 100644--- a/apps/web/lib/constants/program.ts+++ b/apps/web/lib/constants/program.ts@@ -51,5 +51,5 @@ export const PROGRAM_APPLICATION_IMAGE_ALLOWED_TYPES_LABEL = "JPG, PNG, WebP";export const EXTERNAL_PAYOUTS_PROGRAM_IDS = [ACME_PROGRAM_ID, // Acme- "prog_1JWVR53QX1NM7NDEK62E3J19H", // Polymarket+ "prog_1JWVR53QX1NM7NDEK62E3J19H",];