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

Kiran K2e6f61373f1d
diff --git a/apps/web/lib/zod/schemas/bounties.ts b/apps/web/lib/zod/schemas/bounties.ts
index 1ff522602a..68e2a6365c 100644
--- a/apps/web/lib/zod/schemas/bounties.ts
+++ b/apps/web/lib/zod/schemas/bounties.ts
@@ -43,9 +43,11 @@ export const createBountySchema = z.object({
performanceCondition: workflowConditionSchema.nullish(),
});
-export const updateBountySchema = createBountySchema.omit({
- type: true,
-});
+export const updateBountySchema = createBountySchema
+ .omit({
+ type: true,
+ })
+ .partial();
export const BountySubmissionFileSchema = z.object({
url: z.string(),