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.

bump resend, add ignoreParams

Steven Teyed3c9cc0ed96
diff --git a/apps/web/app/(ee)/api/stripe/integration/webhook/checkout-session-completed.ts b/apps/web/app/(ee)/api/stripe/integration/webhook/checkout-session-completed.ts
index e4be287a6e..5a0cf603dd 100644
--- a/apps/web/app/(ee)/api/stripe/integration/webhook/checkout-session-completed.ts
+++ b/apps/web/app/(ee)/api/stripe/integration/webhook/checkout-session-completed.ts
@@ -94,7 +94,7 @@ export async function checkoutSessionCompleted(
existingCustomer = await prisma.customer.findFirst({
where: {
projectId: workspace.id,
- // check for existing customer with the same externalId (via clickId or email) or email or stripeCustomerId
+ // check for existing customer with the same externalId (via clickId or email)
OR: [
{
externalId: clickEvent.click_id,
diff --git a/apps/web/lib/swr/use-fraud-events-count.ts b/apps/web/lib/swr/use-fraud-events-count.ts
index 1bec90e001..0f869fa5f4 100644
--- a/apps/web/lib/swr/use-fraud-events-count.ts
+++ b/apps/web/lib/swr/use-fraud-events-count.ts
@@ -8,9 +8,11 @@ import { fraudEventCountQuerySchema } from "../zod/schemas/fraud";
export function useFraudEventsCount<T>({
query,
enabled = true,
+ ignoreParams = false,
}: {
query?: Partial<z.infer<typeof fraudEventCountQuerySchema>>;
enabled?: boolean;
+ ignoreParams?: boolean;
} = {}) {
const { getQueryString } = useRouterStuff();
const { id: workspaceId, defaultProgramId } = useWorkspace();
@@ -20,9 +22,11 @@ export function useFraudEventsCount<T>({
workspaceId,
...query,
},
- {
- exclude: ["page", "pageSize", "sortBy", "sortOrder", "groupKey"],
- },
+ ignoreParams
+ ? { include: [] }
+ : {
+ exclude: ["page", "pageSize", "sortBy", "sortOrder", "groupKey"],
+ },
);
const { data: fraudEventsCount, error } = useSWR(
diff --git a/apps/web/ui/layout/sidebar/app-sidebar-nav.tsx b/apps/web/ui/layout/sidebar/app-sidebar-nav.tsx
index ffab6b05b4..ff96095987 100644
--- a/apps/web/ui/layout/sidebar/app-sidebar-nav.tsx
+++ b/apps/web/ui/layout/sidebar/app-sidebar-nav.tsx
@@ -532,6 +532,7 @@ export function AppSidebarNav({
>({
query: { status: "pending" },
enabled: Boolean(currentArea === "program" && defaultProgramId),
+ ignoreParams: true,
});
const { canTrackConversions } = getPlanCapabilities(plan);
diff --git a/packages/email/package.json b/packages/email/package.json
index 7ed18670d0..92fcfe3468 100644
--- a/packages/email/package.json
+++ b/packages/email/package.json
@@ -15,7 +15,7 @@
"lucide-react": "^0.462.0",
"nodemailer": "^6.9.3",
"react-email": "^2.1.6",
- "resend": "^6.1.2"
+ "resend": "6.5.2-batch.0"
},
"devDependencies": {
"@types/nodemailer": "~6.4.17",
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 96e59ab2c6..4d29f1e188 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -551,8 +551,8 @@ importers:
specifier: ^2.1.6
resend:
- specifier: ^6.1.2
+ specifier: 6.5.2-batch.0
devDependencies:
'@types/nodemailer':
specifier: ~6.4.17
@@ -11858,9 +11858,9 @@ packages:
resolution: {integrity: sha512-KigOCHcocU3XODJxsu8i/j8T9tzT4adHiecwORRQ0ZZFcp7ahwXuRU1m+yuO90C5ZUyGeGfocHDI14M3L3yDAQ==}
- resolution: {integrity: sha512-C9Q+YkRe57P8MQlkHG3yatSR/B6sqBGA06Ri2DveJfkz9Vm16182FC/iHB0K6IAfmqZ4yRrFebFw1EPuktLtSg==}
- engines: {node: '>=18'}
+ resolution: {integrity: sha512-ruUHusyXvgqgNi94ulSbOzSfDYjFHmNQB0PiUNogCxVV9kvaXYkfAohl5MgxY8/a1gsyPKA2dCDTLQActanr0Q==}
+ engines: {node: '>=20'}
peerDependencies:
'@react-email/render': '*'
peerDependenciesMeta:
@@ -27576,7 +27576,9 @@ snapshots:
+ dependencies:
+ svix: 1.76.1
optionalDependencies: