fix(db): align course metadata types with validation schema
Make reward.description and instructor.coursesNo optional in the course metadata JSON type so API builds match Zod validation. Co-authored-by: Cursor <[email protected]>
This commit is contained in:
@@ -657,12 +657,12 @@ export const course = pgTable(
|
|||||||
paymentLink?: string;
|
paymentLink?: string;
|
||||||
reward?: {
|
reward?: {
|
||||||
show: boolean;
|
show: boolean;
|
||||||
description: string;
|
description?: string;
|
||||||
};
|
};
|
||||||
instructor?: {
|
instructor?: {
|
||||||
name: string;
|
name: string;
|
||||||
role: string;
|
role: string;
|
||||||
coursesNo: number;
|
coursesNo?: number;
|
||||||
description: string;
|
description: string;
|
||||||
imgUrl: string;
|
imgUrl: string;
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user