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-manual-payout.ts

Kiran Kb668a17d94a6
diff --git a/apps/web/lib/actions/partners/create-manual-payout.ts b/apps/web/lib/actions/partners/create-manual-payout.ts
index 8a11193072..3e1dff413b 100644
--- a/apps/web/lib/actions/partners/create-manual-payout.ts
+++ b/apps/web/lib/actions/partners/create-manual-payout.ts
@@ -18,11 +18,12 @@ const schema = z.object({
end: parseDateSchema,
type: z.nativeEnum(PayoutType),
eventCount: z.number().default(0),
- amount: z.number(),
+ amount: z.number().default(0),
description: z.string().max(5000).nullish(),
- metadata: z.record(z.string(), z.number()).nullish(),
});
+// When leads:
+
export const createManualPayoutAction = authActionClient
.schema(schema)
.action(async ({ parsedInput, ctx }) => {