File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 11import { httpRouter } from "convex/server" ;
22import * as z from "zod/mini" ;
33import { internal } from "./_generated/api" ;
4- import type { Id } from "./_generated/dataModel" ;
54import { apiAction } from "./helpers/auth" ;
65import { AppConfigKey } from "./schemas/appConfigs" ;
6+ import { Id } from "./_generated/dataModel" ;
77
88const ZSchoolLevel = z . enum ( [ "undergraduate" , "graduate" ] as const ) ;
99
@@ -105,7 +105,7 @@ export const ZUpsertCourseWithPrerequisites = z.object({
105105
106106export const ZUpsertProgramWithRequirements = z . object ( {
107107 name : z . string ( ) ,
108- level : ZSchoolLevel ,
108+ level : ZSchoolLevel , // undergraduate or graduate
109109 school : ZSchoolName ,
110110 programUrl : z . string ( ) ,
111111 requirements : z . array (
@@ -130,7 +130,7 @@ export const ZUpsertProgramWithRequirements = z.object({
130130 courseLevels : z . array (
131131 z . object ( {
132132 program : z . string ( ) , // CSCI-UA
133- level : z . coerce . number ( ) , // 4
133+ level : z . coerce . number ( ) , // 4 (represents any classes at 400 level)
134134 } ) ,
135135 ) ,
136136 creditsRequired : z . number ( ) ,
You can’t perform that action at this time.
0 commit comments