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 create-partner-commission.ts

Kiran K11b1dff97e00
diff --git a/apps/web/lib/partners/create-partner-commission.ts b/apps/web/lib/partners/create-partner-commission.ts
index c012b6b74b..d6e5e62af5 100644
--- a/apps/web/lib/partners/create-partner-commission.ts
+++ b/apps/web/lib/partners/create-partner-commission.ts
@@ -50,7 +50,7 @@ export const createPartnerCommission = async ({
currency?: string;
description?: string;
createdAt?: Date;
- user?: Session["user"]; // user who created the commission
+ user?: Session["user"]; // user who created the manual commission
}) => {
let earnings = 0;
let status: CommissionStatus = "pending";
@@ -179,6 +179,7 @@ export const createPartnerCommission = async ({
linkId,
eventId,
invoiceId,
+ userId: user?.id,
quantity,
amount,
type: event,