Skip to content

Commit 88a407f

Browse files
committed
refactor(server): rename instructor as instructors
1 parent aaeea9f commit 88a407f

File tree

7 files changed

+55
-55
lines changed

7 files changed

+55
-55
lines changed

apps/web/src/modules/course-selection/components/CourseSectionItem.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ export const CourseSectionItem = ({
5656
</div>
5757
</div>
5858
<div className="text-xs text-muted-foreground space-y-1">
59-
<div>{offering.instructor}</div>
59+
<div>{offering.instructors.join(", ")}</div>
6060
<div>
6161
{offering.days.map((day) => day.slice(0, 3).toUpperCase()).join(", ")}{" "}
6262
{offering.startTime} - {offering.endTime}

apps/web/src/modules/schedule-calendar/components/info-dialog.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ export function CourseInfoDialog({
119119
Instructor
120120
</p>
121121
<p className="text-sm text-muted-foreground">
122-
{course.instructor.join(", ") || "TBA"}
122+
{course.instructors.join(", ") || "TBA"}
123123
</p>
124124
</div>
125125

apps/web/src/modules/schedule-calendar/schedule-calendar.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ export interface Class {
3232
section: string;
3333
year: number;
3434
term: Term;
35-
instructor: string[];
35+
instructors: string[];
3636
location?: string;
3737
startTime: string;
3838
endTime: string;
@@ -173,11 +173,11 @@ export function ScheduleCalendar({
173173
title: `${offering.courseCode} - ${offering.title}`,
174174
color,
175175
times: slots,
176-
description: `${offering.instructor.join(", ")}${offering.section.toUpperCase()}${offering.term} ${offering.year}`,
176+
description: `${offering.instructors.join(", ")}${offering.section.toUpperCase()}${offering.term} ${offering.year}`,
177177
section: offering.section,
178178
year: offering.year,
179179
term: offering.term,
180-
instructor: offering.instructor,
180+
instructors: offering.instructors,
181181
location: offering.location,
182182
startTime: offering.startTime,
183183
endTime: offering.endTime,
@@ -241,12 +241,12 @@ export function ScheduleCalendar({
241241
title: `${offering.courseCode} - ${offering.title}`,
242242
color: getColor(offering._id),
243243
times: slots,
244-
description: `${offering.instructor.join(", ")}${offering.section.toUpperCase()} • Preview`,
244+
description: `${offering.instructors.join(", ")}${offering.section.toUpperCase()} • Preview`,
245245
isPreview: true,
246246
section: offering.section,
247247
year: offering.year,
248248
term: offering.term,
249-
instructor: offering.instructor,
249+
instructors: offering.instructors,
250250
location: offering.location,
251251
startTime: offering.startTime,
252252
endTime: offering.endTime,

packages/server/convex/http.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ export const ZUpsertCourseOfferings = z.array(
222222
term: z.enum(["spring", "summer", "fall", "j-term"]),
223223
level: z.enum(["undergraduate", "graduate"]),
224224
school: ZSchoolName,
225-
instructor: z.array(z.string()),
225+
instructors: z.array(z.string()),
226226
location: z.optional(z.string()),
227227
days: z.array(
228228
z.enum([

packages/server/convex/schemas/courseOfferings.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ const courseOfferings = {
1616
),
1717
level: v.union(v.literal("undergraduate"), v.literal("graduate")),
1818
school: schoolName,
19-
instructor: v.array(v.string()),
19+
instructors: v.array(v.string()),
2020
location: v.optional(v.string()),
2121
days: v.array(
2222
v.union(

packages/server/convex/seed.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ export const seedAll = internalMutation({
128128
),
129129
level: v.union(v.literal("undergraduate"), v.literal("graduate")),
130130
school: schoolName,
131-
instructor: v.array(v.string()),
131+
instructors: v.array(v.string()),
132132
location: v.optional(v.string()),
133133
days: v.array(
134134
v.union(

0 commit comments

Comments
 (0)