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.

small bug fix

Steven Teya6542e8ffb5c
diff --git a/lib/api/links.ts b/lib/api/links.ts
index c9cf422a25..ac8c30106b 100644
--- a/lib/api/links.ts
+++ b/lib/api/links.ts
@@ -275,7 +275,7 @@ export async function editLink(
...(changedKey
? [
cloudinary.v2.uploader
- .rename(`${domain}/${oldKey}`, `${domain}/${key}`, {
+ .destroy(`${domain}/${oldKey}`, {
invalidate: true,
})
.catch(() => {}),