Skip to content

Commit

Permalink
Merge pull request #759 from UTDNebula/fix-course-information
Browse files Browse the repository at this point in the history
fix: course information not loading
  • Loading branch information
KennethImphean authored Aug 21, 2024
2 parents 107aed6 + 948d0b3 commit edc459e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/server/trpc/router/courses.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ import { router, publicProcedure } from '../trpc';

export const coursesRouter = router({
publicGetAllCourses: publicProcedure.query(async () => {
return await courseCache.getCourses(new Date().getFullYear());
//TODO don't hardcode it
return await courseCache.getCourses(2023);
}),
publicGetSanitizedCourses: publicProcedure.query(async ({ ctx }) => {
const courses = await ctx.platformPrisma.courses.findMany({
Expand Down

0 comments on commit edc459e

Please sign in to comment.