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

Steven Teya4b05f143d57
diff --git a/apps/web/lib/zod/schemas/commissions.ts b/apps/web/lib/zod/schemas/commissions.ts
index 1ae2d170fb..63543f3d18 100644
--- a/apps/web/lib/zod/schemas/commissions.ts
+++ b/apps/web/lib/zod/schemas/commissions.ts
@@ -48,6 +48,7 @@ export const CommissionEnrichedSchema = CommissionSchema.extend({
});
// Schema for the commission detail page (GET /api/commissions/:commissionId)
+// TODO: Simplify this for OpenAPI and limit extra fields to in-app only – similar to getLinkInfoQuerySchemaExtended logic
export const CommissionDetailSchema = CommissionEnrichedSchema.extend({
user: UserSchema.nullish().describe("The user who created the commission."),
reward: RewardSchema.pick({