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.

Update send-limit-email.ts

Steven Teyd3107fa64a1c
diff --git a/apps/web/lib/cron/send-limit-email.ts b/apps/web/lib/cron/send-limit-email.ts
index 0997308bfb..061baeb1e3 100644
--- a/apps/web/lib/cron/send-limit-email.ts
+++ b/apps/web/lib/cron/send-limit-email.ts
@@ -27,10 +27,8 @@ export const sendLimitEmail = async ({
limiter.schedule(() =>
sendEmail({
subject: type.endsWith("UsageLimitEmail")
- ? `${process.env.NEXT_PUBLIC_APP_NAME} Alert: Clicks Limit Exceeded`
- : `${process.env.NEXT_PUBLIC_APP_NAME} Alert: ${
- workspace.name
- } has used ${percentage.toString()}% of its links limit for the month.`,
+ ? "Dub Alert: Clicks Limit Exceeded"
+ : `Dub Alert: ${workspace.name} has used ${percentage.toString()}% of its links limit for the month.`,
email,
react: type.endsWith("UsageLimitEmail")
? ClicksExceeded({
@@ -42,6 +40,7 @@ export const sendLimitEmail = async ({
email,
workspace,
}),
+ variant: "notifications",
}),
);
}),