Skip to content

Commit

Permalink
refactor: use cacheKey
Browse files Browse the repository at this point in the history
  • Loading branch information
KevinWu098 committed Jan 5, 2024
1 parent 3970ce5 commit e7021d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/search/query-db.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit e7021d9

Please sign in to comment.