Skip to content

Commit 37c079f

Browse files
committed
fix: Change completedAt from nullable to optional to fix TypeScript error
- Update CourseProgressSchema to use .optional() instead of .nullable() - This changes the type from string | null to string | undefined - Fixes CI type-check error on line 53 of certificate-service.ts
1 parent 8fb1908 commit 37c079f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/schemas/progress.schema.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export const CourseProgressSchema = z.object({
1717
progress: z.number().min(0).max(100),
1818
completedLessons: z.array(z.string()),
1919
lastAccessedAt: z.string(),
20-
completedAt: z.string().nullable(),
20+
completedAt: z.string().optional(),
2121
});
2222

2323
export type CourseProgress = z.infer<typeof CourseProgressSchema>;

0 commit comments

Comments
 (0)