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 values

Steven Tey80b85bee3841
diff --git a/apps/web/app/api/integrations/uninstall/route.ts b/apps/web/app/api/integrations/uninstall/route.ts
index 97d01ae1eb..557009ef65 100644
--- a/apps/web/app/api/integrations/uninstall/route.ts
+++ b/apps/web/app/api/integrations/uninstall/route.ts
@@ -2,6 +2,7 @@ import { DubApiError } from "@/lib/api/errors";
import { withWorkspace } from "@/lib/auth";
import { uninstallSlackIntegration } from "@/lib/integrations/slack/uninstall";
import { prisma } from "@dub/prisma";
+import { SLACK_INTEGRATION_ID } from "@dub/utils";
import { NextResponse } from "next/server";
// DELETE /api/integrations/uninstall - uninstall an installation by id
@@ -38,13 +39,13 @@ export const DELETE = withWorkspace(
select: {
integration: {
select: {
- slug: true,
+ id: true,
},
},
},
});
- if (integration.slug === "slack") {
+ if (integration.id === SLACK_INTEGRATION_ID) {
await uninstallSlackIntegration({
installation,
});
diff --git a/packages/utils/src/constants/integrations.ts b/packages/utils/src/constants/integrations.ts
index 00449f5259..1efbff85d3 100644
--- a/packages/utils/src/constants/integrations.ts
+++ b/packages/utils/src/constants/integrations.ts
@@ -1,5 +1,5 @@
export const SLACK_INTEGRATION_ID = "clzu59rx9000110bm5fnlzwuj";
export const STRIPE_INTEGRATION_ID = "clzra1ya60001wnj4a89zcg9h";
-export const SEGMENT_INTEGRATION_ID = "cm481uged0001eh6uotzmcphy"; // TODO: Replace with real ID
-export const ZAPIER_INTEGRATION_ID = "cl7pj5kq4006835rbjlt2ofka"; // TODO: Replace with real ID
+export const SEGMENT_INTEGRATION_ID = "int_zGnSElTzimbz20OWnXerPoKv";
+export const ZAPIER_INTEGRATION_ID = "clzlmz336000fjeqynwhfv8vo";
export const SHOPIFY_INTEGRATION_ID = "int_iWOtrZgmcyU6XDwKr4AYYqLN";