Skip to content

Commit 2f3ffd6

Browse files
committed
add comments
1 parent 930c7e0 commit 2f3ffd6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/server/convex/http.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
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";
6+
import { Id } from "./_generated/dataModel";
77

88
const ZSchoolLevel = z.enum(["undergraduate", "graduate"] as const);
99

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

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

0 commit comments

Comments
 (0)