File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
Expand file tree Collapse file tree 1 file changed +2
-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" ;
76
@@ -105,7 +104,7 @@ export const ZUpsertCourseWithPrerequisites = z.object({
105104
106105export const ZUpsertProgramWithRequirements = z . object ( {
107106 name : z . string ( ) ,
108- level : ZSchoolLevel ,
107+ level : ZSchoolLevel , // undergraduate or graduate
109108 school : ZSchoolName ,
110109 programUrl : z . string ( ) ,
111110 requirements : z . array (
@@ -130,7 +129,7 @@ export const ZUpsertProgramWithRequirements = z.object({
130129 courseLevels : z . array (
131130 z . object ( {
132131 program : z . string ( ) , // CSCI-UA
133- level : z . coerce . number ( ) , // 4
132+ level : z . coerce . number ( ) , // 4 (represents any classes at 400 level)
134133 } ) ,
135134 ) ,
136135 creditsRequired : z . number ( ) ,
You can’t perform that action at this time.
0 commit comments