The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
Update delete-discount.ts
Kiran K93711edcce11
diff --git a/apps/web/lib/actions/partners/delete-discount.ts b/apps/web/lib/actions/partners/delete-discount.tsindex cde2033435..d45ead809c 100644--- a/apps/web/lib/actions/partners/delete-discount.ts+++ b/apps/web/lib/actions/partners/delete-discount.ts@@ -34,6 +34,7 @@ export const deleteDiscountAction = authActionClient});await prisma.$transaction(async (tx) => {+ // Using updateMany otherwise this would fail if the discount is not a group-level discountawait tx.partnerGroup.updateMany({where: {discountId,