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

Steven Tey2f7aab1e4973
diff --git a/apps/web/app/api/integrations/uninstall/route.ts b/apps/web/app/api/integrations/uninstall/route.ts
index 6ed8f2ce83..9b09e465c7 100644
--- a/apps/web/app/api/integrations/uninstall/route.ts
+++ b/apps/web/app/api/integrations/uninstall/route.ts
@@ -39,21 +39,20 @@ export const DELETE = withWorkspace(
});
}
- const { integrationId, webhooks } =
- await prisma.installedIntegration.delete({
- where: {
- id: installationId,
- },
- select: {
- integrationId: true,
- webhooks: {
- select: {
- id: true,
- triggers: true,
- },
+ const { integrationId } = await prisma.installedIntegration.delete({
+ where: {
+ id: installationId,
+ },
+ select: {
+ integrationId: true,
+ webhooks: {
+ select: {
+ id: true,
+ triggers: true,
},
},
- });
+ },
+ });
waitUntil(
Promise.all([