From 7f77d362eec0bd2de07c92d9ad01056bd0cf0bf6 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 6 Oct 2025 19:51:21 +0000 Subject: [PATCH 1/2] Initial plan From 324d54c9a4f1640fe1cd67eb257d7e2a38f4766b Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 6 Oct 2025 19:59:29 +0000 Subject: [PATCH 2/2] Fix caching issue in streams search endpoint by adding JSON.stringify cacheKey Co-authored-by: hawkrives <464441+hawkrives@users.noreply.github.com> --- source/ccci-stolaf-college/v1/streams.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/ccci-stolaf-college/v1/streams.ts b/source/ccci-stolaf-college/v1/streams.ts index 5bc8ce8d..7c169d21 100644 --- a/source/ccci-stolaf-college/v1/streams.ts +++ b/source/ccci-stolaf-college/v1/streams.ts @@ -60,7 +60,7 @@ const getStreams = mem( } }) }, - {maxAge: ONE_HOUR}, + {maxAge: ONE_HOUR, cacheKey: (arguments_) => JSON.stringify(arguments_[0])}, ) export async function upcoming(ctx: Context) { @@ -112,6 +112,6 @@ export async function search(ctx: Context) { date_from: dateFrom, date_to: dateTo, sort, - ...(query ? {squery: query} : {}), + ...(query !== undefined ? {squery: query} : {}), }) }