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 delete-partner.ts

Steven Teyf88598d7815a
diff --git a/apps/web/lib/api/partners/delete-partner.ts b/apps/web/lib/api/partners/delete-partner.ts
index 753c23f3f7..69dea425f2 100644
--- a/apps/web/lib/api/partners/delete-partner.ts
+++ b/apps/web/lib/api/partners/delete-partner.ts
@@ -45,7 +45,9 @@ export async function deletePartner({ partnerId }: { partnerId: string }) {
await prisma.link.deleteMany({
where: {
- partnerId: partner.id,
+ id: {
+ in: links.map((link) => link.id),
+ },
},
});