diff --git a/components/search/query-db.ts b/components/search/query-db.ts index 80b799a..b5db4da 100644 --- a/components/search/query-db.ts +++ b/components/search/query-db.ts @@ -30,7 +30,7 @@ export async function queryDatabase( const data = await response.json(); - cache[university + ge] = [new Date(), data.courses]; + cache[cacheKey] = [new Date(), data.courses]; return data.courses; } catch (error) {