Skip to content

Commit

Permalink
fix: fix missing cb query params when clearing cache (#102)
Browse files Browse the repository at this point in the history
  • Loading branch information
wa0x6e authored Oct 10, 2023
1 parent 6881d11 commit 559c5dd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ router.get(`/clear/:type(${TYPE_CONSTRAINTS})/:id`, async (req, res) => {
try {
const { address, network, w, h, fallback } = await parseQuery(id, type, {
s: constants.max,
fb: req.query.fb
fb: req.query.fb,
cb: req.query.cb
});
const key = getCacheKey({ type, network, address, w, h, fallback });
await clear(key);
Expand Down

0 comments on commit 559c5dd

Please sign in to comment.