Skip to content

Commit edc459e

Browse files
Merge pull request #759 from UTDNebula/fix-course-information
fix: course information not loading
2 parents 107aed6 + 948d0b3 commit edc459e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/server/trpc/router/courses.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ import { router, publicProcedure } from '../trpc';
55

66
export const coursesRouter = router({
77
publicGetAllCourses: publicProcedure.query(async () => {
8-
return await courseCache.getCourses(new Date().getFullYear());
8+
//TODO don't hardcode it
9+
return await courseCache.getCourses(2023);
910
}),
1011
publicGetSanitizedCourses: publicProcedure.query(async ({ ctx }) => {
1112
const courses = await ctx.platformPrisma.courses.findMany({

0 commit comments

Comments
 (0)