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

Kiran K23ab6c7710b7
diff --git a/apps/web/lib/integrations/shopify/create-sale.ts b/apps/web/lib/integrations/shopify/create-sale.ts
index ea81fca6c2..4a0b76f7d4 100644
--- a/apps/web/lib/integrations/shopify/create-sale.ts
+++ b/apps/web/lib/integrations/shopify/create-sale.ts
@@ -140,7 +140,7 @@ export async function createShopifySale({
program,
partner,
sales: 1,
- saleAmount: saleData.amount,
+ saleAmount: amount,
});
await prisma.commission.create({
@@ -152,7 +152,7 @@ export async function createShopifySale({
customerId: customer.id,
quantity: 1,
type: "sale",
- amount: saleData.amount,
+ amount,
earnings: saleEarnings,
invoiceId,
},
@@ -166,7 +166,7 @@ export async function createShopifySale({
},
program,
sale: {
- amount: saleData.amount,
+ amount,
earnings: saleEarnings,
},
}),