Skip to content

Commit

Permalink
Use enum instead of hardcoding "coe" collection
Browse files Browse the repository at this point in the history
  • Loading branch information
ruchernchong committed Oct 13, 2024
1 parent 05d84a8 commit 31dd418
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/v1/routes/coe.ts
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ app.get("/months", async (c) => {
});

app.get("/latest", async (c) => {
const CACHE_KEY = `coe:latest`;
const CACHE_KEY = `${Collection.COE}:latest`;
const cachedData = await getCachedData<COEResult[]>(CACHE_KEY);
if (cachedData) return c.json(cachedData);

Expand Down

0 comments on commit 31dd418

Please sign in to comment.