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.

add MIN_PAYOUT_AMOUNT_FOR_REMINDERS

Steven Teyace85000576c
diff --git a/apps/web/app/(ee)/api/cron/payouts/reminders/partners/route.ts b/apps/web/app/(ee)/api/cron/payouts/reminders/partners/route.ts
index 1b2ad7f0e3..3575bdc482 100644
--- a/apps/web/app/(ee)/api/cron/payouts/reminders/partners/route.ts
+++ b/apps/web/app/(ee)/api/cron/payouts/reminders/partners/route.ts
@@ -1,4 +1,5 @@
import { handleAndReturnErrorResponse } from "@/lib/api/errors";
+import { MIN_PAYOUT_AMOUNT_FOR_REMINDERS } from "@/lib/constants/misc";
import { qstash } from "@/lib/cron";
import { verifyQstashSignature } from "@/lib/cron/verify-qstash";
import { verifyVercelSignature } from "@/lib/cron/verify-vercel";
@@ -47,6 +48,9 @@ async function handler(req: Request) {
},
],
},
+ amount: {
+ gte: MIN_PAYOUT_AMOUNT_FOR_REMINDERS,
+ },
},
_sum: {
amount: true,
diff --git a/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/settings/billing/plan-usage.tsx b/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/settings/billing/plan-usage.tsx
index cd3866e6d8..602f4d1c5f 100644
--- a/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/settings/billing/plan-usage.tsx
+++ b/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/settings/billing/plan-usage.tsx
@@ -284,10 +284,6 @@ function UsageTabCard({
return acc;
}, 0);
- if (resource === "links") {
- console.log({ filteredUsage, usageProp, hasActiveFilters });
- }
-
const [usage, limit] =
unit === "$" && usageProp !== undefined && limitProp !== undefined
? [
diff --git a/apps/web/lib/constants/misc.ts b/apps/web/lib/constants/misc.ts
index b61f800eaf..d11929b76d 100644
--- a/apps/web/lib/constants/misc.ts
+++ b/apps/web/lib/constants/misc.ts
@@ -1,3 +1,4 @@
export const REFERRALS_EMBED_EARNINGS_LIMIT = 8;
export const CUSTOMER_PAGE_EVENTS_LIMIT = 8;
export const MEGA_WORKSPACE_LINKS_LIMIT = 1_000_000;
+export const MIN_PAYOUT_AMOUNT_FOR_REMINDERS = 100_00;