Skip to content

Commit 3852076

Browse files
committed
refactor: check if caches have the requested cache name
1 parent 8f465af commit 3852076

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/controllers/admin/cache.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ cacheController.dump = async function (req, res, next) {
5252
local: require('../../cache'),
5353
};
5454
caches = await plugins.hooks.fire('filter:admin.cache.get', caches);
55-
if (!caches[req.query.name]) {
55+
if (!caches.hasOwnProperty(req.query.name)) {
5656
return next();
5757
}
5858

0 commit comments

Comments
 (0)