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 notify-partner-sale.ts

Kiran K818b1949c07e
diff --git a/apps/web/lib/api/partners/notify-partner-sale.ts b/apps/web/lib/api/partners/notify-partner-sale.ts
index b52aad4a1c..9bb7fdca3c 100644
--- a/apps/web/lib/api/partners/notify-partner-sale.ts
+++ b/apps/web/lib/api/partners/notify-partner-sale.ts
@@ -62,7 +62,9 @@ export async function notifyPartnerSale({
prisma.projectUsers.findMany({
where: {
projectId: workspace.id,
- role: "owner",
+ notificationPreference: {
+ newReferralSale: true,
+ },
},
include: {
user: {