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.

fixed issues

Steven Tey6497db08bcd6
diff --git a/apps/web/app/api/cron/links/event/route.ts b/apps/web/app/api/cron/links/event/route.ts
index c7544a6a71..d7ecfe5389 100644
--- a/apps/web/app/api/cron/links/event/route.ts
+++ b/apps/web/app/api/cron/links/event/route.ts
@@ -88,7 +88,7 @@ export async function POST(req: Request) {
where: {
projects: {
some: {
- id: project.id,
+ projectId: project.id,
},
},
},
diff --git a/apps/web/emails/clicks-exceeded.tsx b/apps/web/emails/clicks-exceeded.tsx
index ce49992e1b..cc6e925903 100644
--- a/apps/web/emails/clicks-exceeded.tsx
+++ b/apps/web/emails/clicks-exceeded.tsx
@@ -56,7 +56,14 @@ export default function ClicksExceeded({
Clicks Limit Exceeded
</Heading>
<Text className="text-sm leading-6 text-black">
- Your Dub.co project, <strong> {name} </strong> has exceeded the
+ Your Dub.co project,{" "}
+ <Link
+ href={`https://app.dub.co/${slug}`}
+ className="text-black underline"
+ >
+ <strong>{name}</strong>
+ </Link>{" "}
+ has exceeded the
<strong> {capitalize(plan)} Plan </strong>
limit of{" "}
<strong>{nFormatter(usageLimit)} link clicks/month</strong>. You
diff --git a/apps/web/emails/links-limit.tsx b/apps/web/emails/links-limit.tsx
index c496c9205d..4a3837bc52 100644
--- a/apps/web/emails/links-limit.tsx
+++ b/apps/web/emails/links-limit.tsx
@@ -60,10 +60,16 @@ export default function LinksLimitAlert({
Dub.co Links Limit Alert
</Heading>
<Text className="text-sm leading-6 text-black">
- Your Dub.co project, <strong> {name} </strong> has used{" "}
- <strong>{percentage.toString()}%</strong> of the monthly links
- limit included in the {capitalize(plan)} plan. You have created a
- total of{" "}
+ Your Dub.co project,{" "}
+ <Link
+ href={`https://app.dub.co/${slug}`}
+ className="text-black underline"
+ >
+ <strong>{name}</strong>
+ </Link>{" "}
+ has used <strong>{percentage.toString()}%</strong> of the monthly
+ links limit included in the {capitalize(plan)} plan. You have
+ created a total of{" "}
<strong>{nFormatter(linksUsage, { full: true })} links</strong>{" "}
(out of a maximum of {nFormatter(linksLimit, { full: true })}{" "}
links) in your current billing cycle.