Skip to content

Commit

Permalink
feat: Use Folders to organize SMS links on Dub (#19248)
Browse files Browse the repository at this point in the history
* feat: Use Folders to organize SMS links on Dub

* Update yarn.lock

---------

Co-authored-by: sean-brydon <[email protected]>
Co-authored-by: Bailey Pumfleet <[email protected]>
  • Loading branch information
3 people authored Feb 15, 2025
1 parent 5c6f52f commit be53a20
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 7 deletions.
2 changes: 1 addition & 1 deletion packages/features/auth/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
6 changes: 5 additions & 1 deletion packages/features/ee/workflows/lib/reminders/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
10 changes: 5 additions & 5 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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

Expand Down

0 comments on commit be53a20

Please sign in to comment.