The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
remove "upgrade required", add program.url to log()
Steven Tey59dc240fb4b5
diff --git a/apps/web/app/(ee)/api/cron/payouts/process/process-payouts.ts b/apps/web/app/(ee)/api/cron/payouts/process/process-payouts.tsindex 3cf1f906ed..b8521ce0f6 100644--- a/apps/web/app/(ee)/api/cron/payouts/process/process-payouts.ts+++ b/apps/web/app/(ee)/api/cron/payouts/process/process-payouts.ts@@ -48,7 +48,7 @@ interface ProcessPayoutsProps {>;program: Pick<Program,- "id" | "name" | "logo" | "minPayoutAmount" | "supportEmail"+ "id" | "name" | "logo" | "url" | "minPayoutAmount" | "supportEmail"> & {payoutMode: ProgramPayoutMode;};@@ -281,7 +281,7 @@ export async function processPayouts({});await log({- message: `*${program.name}* just sent a payout of *${currencyFormatter(totalPayoutAmount)}* :money_with_wings: \n\n Fees earned: *${currencyFormatter(invoiceFee)} (${payoutFee * 100}%)* :money_mouth_face:`,+ message: `*${program.name}* (${program.url}) just sent a payout of *${currencyFormatter(totalPayoutAmount)}* :money_with_wings: \n\n Fees earned: *${currencyFormatter(invoiceFee)} (${payoutFee * 100}%)* :money_mouth_face:`,type: "payouts",});diff --git a/apps/web/ui/partners/rewards/rewards-logic.tsx b/apps/web/ui/partners/rewards/rewards-logic.tsxindex b549ec04ac..8eb65dc669 100644--- a/apps/web/ui/partners/rewards/rewards-logic.tsx+++ b/apps/web/ui/partners/rewards/rewards-logic.tsx@@ -1,7 +1,6 @@"use client";import { constructRewardAmount } from "@/lib/api/sales/construct-reward-amount";-import { getPlanCapabilities } from "@/lib/plan-capabilities";import { REFERRAL_ENABLED_PROGRAM_IDS } from "@/lib/referrals/constants";import useProgram from "@/lib/swr/use-program";import useWorkspace from "@/lib/swr/use-workspace";@@ -95,23 +94,7 @@ export function RewardsLogic({<ButtonclassName="h-8 rounded-lg"icon={<ArrowTurnRight2 className="size-4" />}- text={- <div className="flex items-center gap-2">- <span>Add condition</span>- {!getPlanCapabilities(plan).canUseAdvancedRewardLogic && (- <div- className={cn(- "rounded-sm px-1.5 py-1 text-[0.625rem] uppercase leading-none",- isDefaultReward- ? "bg-violet-500/50 text-violet-200"- : "bg-violet-50 text-violet-600",- )}- >- Upgrade required- </div>- )}- </div>- }+ text="Add condition"onClick={() => {const type = getValues("type");