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.

final changes

Steven Tey69025d47edb4
diff --git a/apps/web/app/app.dub.co/(dashboard)/[slug]/settings/(basic-layout)/integrations/[integrationSlug]/manage/page.tsx b/apps/web/app/app.dub.co/(dashboard)/[slug]/settings/(basic-layout)/integrations/[integrationSlug]/manage/page.tsx
index 57014035c2..913fd19e80 100644
--- a/apps/web/app/app.dub.co/(dashboard)/[slug]/settings/(basic-layout)/integrations/[integrationSlug]/manage/page.tsx
+++ b/apps/web/app/app.dub.co/(dashboard)/[slug]/settings/(basic-layout)/integrations/[integrationSlug]/manage/page.tsx
@@ -4,6 +4,8 @@ import { prisma } from "@dub/prisma";
import { MaxWidthWrapper } from "@dub/ui";
import { notFound } from "next/navigation";
+export const revalidate = 0;
+
export default async function IntegrationManagePage({
params,
}: {
diff --git a/apps/web/lib/partnerstack/update-stripe-customers.ts b/apps/web/lib/partnerstack/update-stripe-customers.ts
index 708cc3251d..d441ae4ea8 100644
--- a/apps/web/lib/partnerstack/update-stripe-customers.ts
+++ b/apps/web/lib/partnerstack/update-stripe-customers.ts
@@ -2,7 +2,6 @@ import { sendEmail } from "@dub/email";
import CampaignImported from "@dub/email/templates/campaign-imported";
import { prisma } from "@dub/prisma";
import { Customer, Project } from "@dub/prisma/client";
-import { log } from "@dub/utils";
import { stripeAppClient } from "../stripe";
import { MAX_BATCHES, partnerStackImporter } from "./importer";
import { PartnerStackImportPayload } from "./types";
@@ -151,11 +150,6 @@ async function searchStripeAndUpdateCustomer({
}
if (stripeCustomers.data.length > 1) {
- await log({
- message: `Stripe search returned multiple customers for ${customer.email} for workspace ${workspace.slug}`,
- type: "errors",
- });
-
console.error(
`Stripe search returned multiple customers for ${customer.email}`,
);
diff --git a/apps/web/lib/tolt/update-stripe-customers.ts b/apps/web/lib/tolt/update-stripe-customers.ts
index ed4cbd80b3..8228bbc18f 100644
--- a/apps/web/lib/tolt/update-stripe-customers.ts
+++ b/apps/web/lib/tolt/update-stripe-customers.ts
@@ -1,6 +1,5 @@
import { prisma } from "@dub/prisma";
import { Customer, Project } from "@dub/prisma/client";
-import { log } from "@dub/utils";
import Stripe from "stripe";
import { stripeAppClient } from "../stripe";
import { MAX_BATCHES, toltImporter } from "./importer";
@@ -127,11 +126,6 @@ async function searchStripeAndUpdateCustomer({
if (toltReferralStripeCustomer) {
stripeCustomer = toltReferralStripeCustomer;
} else {
- await log({
- message: `Stripe search returned multiple customers for ${customer.email} for workspace ${workspace.slug} and none had metadata.tolt_referral set`,
- type: "errors",
- });
-
console.error(
`Stripe search returned multiple customers for ${customer.email} for workspace ${workspace.slug} and none had metadata.tolt_referral set`,
);
diff --git a/apps/web/scripts/stripe/update-stripe-customers.ts b/apps/web/scripts/stripe/update-stripe-customers.ts
index d97e2675d7..9ed92b8c54 100644
--- a/apps/web/scripts/stripe/update-stripe-customers.ts
+++ b/apps/web/scripts/stripe/update-stripe-customers.ts
@@ -6,7 +6,7 @@ import { stripeAppClient } from "../../lib/stripe";
async function main() {
const workspace = await prisma.project.findUniqueOrThrow({
where: {
- id: "ws_1JRV43Y6B85PGH7B54KA79M81",
+ id: "xxx",
},
});