refactor: check if caches have the requested cache name

This commit is contained in:
Barış Soner Uşaklı
2024-12-10 10:21:06 -05:00
parent 8f465afc97
commit 38520769a3

View File

@@ -52,7 +52,7 @@ cacheController.dump = async function (req, res, next) {
local: require('../../cache'),
};
caches = await plugins.hooks.fire('filter:admin.cache.get', caches);
if (!caches[req.query.name]) {
if (!caches.hasOwnProperty(req.query.name)) {
return next();
}