Skip to content

Commit 0d98770

Browse files
Zeff01claude
andcommitted
fix: make waitlist_entered_at optional in applicant schema
Fixed schema validation issue preventing 894 applicants from displaying on the applicants page. The waitlist_entered_at field is NULL for existing records, but the Zod schema required it to be present, causing validation to fail silently. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 110310d commit 0d98770

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • apps/codebility/app/home/applicants/_service

‎apps/codebility/app/home/applicants/_service/types.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ export const newApplicantsSchema = z.object({
4444
quiz_completed_at: z.string().datetime({ offset: true }).nullable(),
4545
can_do_mobile: z.boolean().nullable(),
4646
commitment_signed_at: z.string().datetime({ offset: true }).nullable(),
47-
waitlist_entered_at: z.string().datetime({ offset: true }).nullable(),
47+
waitlist_entered_at: z.string().datetime({ offset: true }).nullable().optional(),
4848
signature_data: z.string().nullable(),
4949
created_at: z.string().datetime({ offset: true }),
5050
updated_at: z.string().datetime({ offset: true }),

0 commit comments

Comments
 (0)