The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
fix image deleted bug
Steven Teyb95e7b217c58
diff --git a/apps/web/lib/api/links.ts b/apps/web/lib/api/links.tsindex 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([