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.

chore: Remove unused integration.ts file and use findUniqueOrThrow

Kiran Kb7ee555a2a6f
diff --git a/apps/web/app/api/slack/callback/route.ts b/apps/web/app/api/slack/callback/route.ts
index 73b1e240a2..e3a7e5b689 100644
--- a/apps/web/app/api/slack/callback/route.ts
+++ b/apps/web/app/api/slack/callback/route.ts
@@ -42,7 +42,7 @@ export const GET = async (req: Request) => {
});
}
- workspace = await prisma.project.findFirstOrThrow({
+ workspace = await prisma.project.findUniqueOrThrow({
where: {
id: workspaceId,
},
@@ -63,8 +63,6 @@ export const GET = async (req: Request) => {
const data = await response.json();
- console.log(data);
-
const credentials: SlackCredential = {
appId: data.app_id,
botUserId: data.bot_user_id,
diff --git a/apps/web/lib/integrations/integration.ts b/apps/web/lib/integrations/integration.ts
deleted file mode 100644
index 8ec513eb83..0000000000
--- a/apps/web/lib/integrations/integration.ts
+++ /dev/null
@@ -1,6 +0,0 @@
-// Beta version
-export interface IntegrationAdapter {
- install(): Promise<void>;
- uninstall(): Promise<void>;
- getCredentials(): Promise<any>;
-}