Skip to content

Scheduling infrastructure for absolutely everyone.

feat: Use Folders to organize SMS links on Dub (#19248)

Steven Teybe53a2042966
diff --git a/packages/features/auth/package.json b/packages/features/auth/package.json
index 73c312f394a..16327794c32 100644
--- a/packages/features/auth/package.json
+++ b/packages/features/auth/package.json
@@ -13,7 +13,7 @@
"@calcom/trpc": "*",
"@calcom/ui": "*",
"bcryptjs": "^2.4.3",
- "dub": "^0.46.15",
+ "dub": "^0.49.1",
"handlebars": "^4.7.7",
"jose": "^4.13.1",
"lru-cache": "^9.0.3",
diff --git a/packages/features/ee/workflows/lib/reminders/utils.ts b/packages/features/ee/workflows/lib/reminders/utils.ts
index 3a4d628072a..850122e9f03 100644
--- a/packages/features/ee/workflows/lib/reminders/utils.ts
+++ b/packages/features/ee/workflows/lib/reminders/utils.ts
@@ -3,7 +3,11 @@ import { dub } from "@calcom/features/auth/lib/dub";
export const bulkShortenLinks = async (links: string[]) => {
const linksToShorten = links.filter((link) => link);
const results = await dub.links.createMany(
- linksToShorten.map((link) => ({ domain: "sms.cal.com", url: link }))
+ linksToShorten.map((link) => ({
+ domain: "sms.cal.com",
+ url: link,
+ folderId: "fold_wx3NZDKQYbLDbncSubeMu0ss",
+ }))
);
return links.map((link) => {
const createdLink = results.find(
diff --git a/yarn.lock b/yarn.lock
index d0063fdce01..220bcd21569 100644
--- a/yarn.lock
+++ b/yarn.lock
@@ -4142,7 +4142,7 @@ __metadata:
"@calcom/trpc": "*"
"@calcom/ui": "*"
bcryptjs: ^2.4.3
- dub: ^0.46.15
+ dub: ^0.49.1
handlebars: ^4.7.7
jose: ^4.13.1
lru-cache: ^9.0.3
@@ -23564,12 +23564,12 @@ __metadata:
languageName: node
linkType: hard
-"dub@npm:^0.46.15":
- version: 0.46.15
- resolution: "dub@npm:0.46.15"
+"dub@npm:^0.49.1":
+ version: 0.49.1
+ resolution: "dub@npm:0.49.1"
peerDependencies:
zod: ">= 3"
- checksum: 36b1260bc3115e5a9122bd165785ecfcc208ff6e6f8dc38c339d9b98132e3d49fe05740659106dcf870cc0bc8037ff6181620347076186e1a82644fb9513983b
+ checksum: 10a59c1240bbfc6de108e49e42d58a1e762979f19b3e3eb9df94279e5942d55ca18825f19e99a991121dfce0550d92eef50f9eef4e905d151f3379ff78261cff
languageName: node
linkType: hard