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 the command

Kiran Kd0d2d1da4d13
diff --git a/apps/web/app/api/slack/slash-commands/route.ts b/apps/web/app/api/slack/slash-commands/route.ts
index d79e51723c..5af618987b 100644
--- a/apps/web/app/api/slack/slash-commands/route.ts
+++ b/apps/web/app/api/slack/slash-commands/route.ts
@@ -1,6 +1,6 @@
import { handleSlashCommand } from "@/lib/integration/slack/slash-commands";
-// Slack will send an HTTP POST request information to this URL when a user run the command /shorten <url> <key>
+// Slack will send an HTTP POST request information to this URL when a user run the slash command
export const POST = async (req: Request) => {
const { text } = await handleSlashCommand(req);
diff --git a/apps/web/lib/integration/slack/slash-commands.ts b/apps/web/lib/integration/slack/slash-commands.ts
index ec4b5d34c9..e87bb37f13 100644
--- a/apps/web/lib/integration/slack/slash-commands.ts
+++ b/apps/web/lib/integration/slack/slash-commands.ts
@@ -40,12 +40,6 @@ export const handleSlashCommand = async (
equals: data.team_id,
},
},
- {
- credentials: {
- path: "$.appId",
- equals: data.api_app_id,
- },
- },
],
},
});