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 image deleted bug

Steven Teyb95e7b217c58
diff --git a/apps/web/lib/api/links.ts b/apps/web/lib/api/links.ts
index 2a97f51166..2714061db3 100644
--- a/apps/web/lib/api/links.ts
+++ b/apps/web/lib/api/links.ts
@@ -756,9 +756,6 @@ export async function editLink({
width: 1200,
height: 630,
});
- // if there's an image in R2, delete it
- } else if (oldImage?.startsWith(process.env.STORAGE_BASE_URL as string)) {
- await storage.delete(`images/${id}`);
}
const [response, ..._effects] = await Promise.all([