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

Steven Tey5d9d154e65a5
diff --git a/apps/web/lib/api/partners/invite-partner.ts b/apps/web/lib/api/partners/invite-partner.ts
index 4e007148bc..29cf76f9a7 100644
--- a/apps/web/lib/api/partners/invite-partner.ts
+++ b/apps/web/lib/api/partners/invite-partner.ts
@@ -22,13 +22,7 @@ export const invitePartner = async ({
where: {
programId: program.id,
partner: {
- users: {
- some: {
- user: {
- email,
- },
- },
- },
+ email,
},
},
}),