The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
rename
Kiran K878c1d957460
diff --git a/apps/web/app/(ee)/api/cron/payouts/confirm/confirm-payouts.ts b/apps/web/app/(ee)/api/cron/payouts/confirm/confirm-payouts.tsindex 64ab5de182..d371c0c9a0 100644--- a/apps/web/app/(ee)/api/cron/payouts/confirm/confirm-payouts.ts+++ b/apps/web/app/(ee)/api/cron/payouts/confirm/confirm-payouts.ts@@ -7,7 +7,7 @@ import {CUTOFF_PERIOD,CUTOFF_PERIOD_TYPES,} from "@/lib/partners/cutoff-period";-import { computePayoutFeeForMethod } from "@/lib/payment-methods";+import { calculatePayoutFeeForMethod } from "@/lib/payment-methods";import { stripe } from "@/lib/stripe";import { resend } from "@dub/email/resend";import { VARIANT_TO_FROM_MAP } from "@dub/email/resend/constants";@@ -86,7 +86,7 @@ export async function confirmPayouts({const newInvoice = await prisma.$transaction(async (tx) => {const amount = payouts.reduce((total, payout) => total + payout.amount, 0);- const payoutFee = computePayoutFeeForMethod({+ const payoutFee = calculatePayoutFeeForMethod({paymentMethod: paymentMethod.type,payoutFee: workspace.payoutFee,});diff --git a/apps/web/lib/payment-methods.ts b/apps/web/lib/payment-methods.tsindex 3539350917..40f868325f 100644--- a/apps/web/lib/payment-methods.ts+++ b/apps/web/lib/payment-methods.ts@@ -1,7 +1,7 @@import Stripe from "stripe";import { DIRECT_DEBIT_PAYMENT_METHOD_TYPES } from "./partners/constants";-export const computePayoutFeeForMethod = ({+export const calculatePayoutFeeForMethod = ({paymentMethod,payoutFee,}: {diff --git a/apps/web/ui/partners/payout-invoice-sheet.tsx b/apps/web/ui/partners/payout-invoice-sheet.tsxindex b9cd92e068..cdd14e1a49 100644--- a/apps/web/ui/partners/payout-invoice-sheet.tsx+++ b/apps/web/ui/partners/payout-invoice-sheet.tsx@@ -4,7 +4,7 @@ import {CUTOFF_PERIOD,CUTOFF_PERIOD_TYPES,} from "@/lib/partners/cutoff-period";-import { computePayoutFeeForMethod } from "@/lib/payment-methods";+import { calculatePayoutFeeForMethod } from "@/lib/payment-methods";import { mutatePrefix } from "@/lib/swr/mutate";import usePaymentMethods from "@/lib/swr/use-payment-methods";import useWorkspace from "@/lib/swr/use-workspace";@@ -131,7 +131,7 @@ function PayoutInvoiceSheetContent() {const base = {...paymentMethod,id: pm.id,- fee: computePayoutFeeForMethod({+ fee: calculatePayoutFeeForMethod({paymentMethod: pm.type,payoutFee,}),