From 61199eceb6c21e790be149893160cf6b81295313 Mon Sep 17 00:00:00 2001 From: Ethan Bickel Date: Tue, 20 Aug 2024 18:09:55 -0500 Subject: [PATCH 1/2] temporarily hardcore catalog year --- src/server/trpc/router/courses.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/server/trpc/router/courses.ts b/src/server/trpc/router/courses.ts index d3af6eb85..f6532251a 100644 --- a/src/server/trpc/router/courses.ts +++ b/src/server/trpc/router/courses.ts @@ -5,7 +5,7 @@ import { router, publicProcedure } from '../trpc'; export const coursesRouter = router({ publicGetAllCourses: publicProcedure.query(async () => { - return await courseCache.getCourses(new Date().getFullYear()); + return await courseCache.getCourses(2023); }), publicGetSanitizedCourses: publicProcedure.query(async ({ ctx }) => { const courses = await ctx.platformPrisma.courses.findMany({ From 948d0b3ac32529cd35d88bbd39a9d3a6b10a7eda Mon Sep 17 00:00:00 2001 From: Ethan Bickel Date: Tue, 20 Aug 2024 21:52:43 -0500 Subject: [PATCH 2/2] comment to retrigger ci --- src/server/trpc/router/courses.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/server/trpc/router/courses.ts b/src/server/trpc/router/courses.ts index f6532251a..6e157722e 100644 --- a/src/server/trpc/router/courses.ts +++ b/src/server/trpc/router/courses.ts @@ -5,6 +5,7 @@ import { router, publicProcedure } from '../trpc'; export const coursesRouter = router({ publicGetAllCourses: publicProcedure.query(async () => { + //TODO don't hardcode it return await courseCache.getCourses(2023); }), publicGetSanitizedCourses: publicProcedure.query(async ({ ctx }) => {