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 route.ts

Kiran Kc5344ee0445d
diff --git a/apps/web/app/api/stripe/integration/callback/route.ts b/apps/web/app/api/stripe/integration/callback/route.ts
index 3d46a1fb35..1d1ce83ba3 100644
--- a/apps/web/app/api/stripe/integration/callback/route.ts
+++ b/apps/web/app/api/stripe/integration/callback/route.ts
@@ -4,12 +4,10 @@ import { withWorkspace } from "@/lib/auth";
import { installIntegration } from "@/lib/integrations/install";
import z from "@/lib/zod";
import { prisma } from "@dub/prisma";
-// import { STRIPE_INTEGRATION_ID } from "@dub/utils";
+import { STRIPE_INTEGRATION_ID } from "@dub/utils";
import { waitUntil } from "@vercel/functions";
import { NextResponse } from "next/server";
-const STRIPE_INTEGRATION_ID = "int_JpQs8mHb8Umci4waZeRSAkYE";
-
const CORS_HEADERS = {
"Access-Control-Allow-Origin": "*",
"Access-Control-Allow-Methods": "PATCH, OPTIONS",
@@ -66,7 +64,7 @@ export const PATCH = withWorkspace(
});
}
- // Uninstall the integration if the shopify store id is null
+ // Uninstall the integration if the stripe account id is null
if (installation && stripeAccountId === null) {
await prisma.installedIntegration.delete({
where: {