Skip to content

Commit 74765c0

Browse files
committed
add comments
1 parent 930c7e0 commit 74765c0

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

packages/server/convex/http.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import { httpRouter } from "convex/server";
22
import * as z from "zod/mini";
33
import { internal } from "./_generated/api";
4-
import type { Id } from "./_generated/dataModel";
54
import { apiAction } from "./helpers/auth";
65
import { AppConfigKey } from "./schemas/appConfigs";
76

@@ -105,7 +104,7 @@ export const ZUpsertCourseWithPrerequisites = z.object({
105104

106105
export 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(),

0 commit comments

Comments
 (0)