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.

Update route.ts

Steven Tey4d19dcda54f2
diff --git a/apps/web/app/api/oauth/apps/[appId]/route.ts b/apps/web/app/api/oauth/apps/[appId]/route.ts
index 441b23a7b5..fb596fa9ab 100644
--- a/apps/web/app/api/oauth/apps/[appId]/route.ts
+++ b/apps/web/app/api/oauth/apps/[appId]/route.ts
@@ -134,7 +134,9 @@ export const PATCH = withWorkspace(
if (
logoUpdated &&
integration.logo &&
- integration.logo.startsWith(`${R2_URL}/integrations`)
+ integration.logo.startsWith(
+ `${R2_URL}/integrations/${params.appId}`,
+ )
) {
await storage.delete(integration.logo.replace(`${R2_URL}/`, ""));
}