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.

fix ts

Steven Teydf6a6bfcbca2
diff --git a/apps/web/lib/integrations/slack/slash-commands.ts b/apps/web/lib/integrations/slack/slash-commands.ts
index 823aa0b585..fd97a60b53 100644
--- a/apps/web/lib/integrations/slack/slash-commands.ts
+++ b/apps/web/lib/integrations/slack/slash-commands.ts
@@ -163,6 +163,6 @@ const createShortLink = async ({
const { shortLink } = await createLink(link);
return {
- text: shortLink,
+ text: shortLink as string, // TODO: Once shortLink is not nullable, we can remove the type assertion
};
};
diff --git a/apps/web/tests/utils/schema.ts b/apps/web/tests/utils/schema.ts
index ecdd37c6a2..e2b1cd90b5 100644
--- a/apps/web/tests/utils/schema.ts
+++ b/apps/web/tests/utils/schema.ts
@@ -8,6 +8,7 @@ export const expectedLink: Partial<Link> & {
id: expect.any(String),
key: expect.any(String),
domain: "dub.sh",
+ shortLink: expect.any(String),
trackConversion: false,
archived: false,
expiresAt: null,