From f5159de9cf80103d5fdae97b60f54d7bbb92e2b1 Mon Sep 17 00:00:00 2001 From: derrickmehaffy Date: Thu, 27 Jul 2023 01:31:19 -0700 Subject: [PATCH] revert #55 changes --- .../server/middlewares/purgeAdmin.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/packages/strapi-plugin-rest-cache/server/middlewares/purgeAdmin.js b/packages/strapi-plugin-rest-cache/server/middlewares/purgeAdmin.js index 5c2446194..483a4deed 100644 --- a/packages/strapi-plugin-rest-cache/server/middlewares/purgeAdmin.js +++ b/packages/strapi-plugin-rest-cache/server/middlewares/purgeAdmin.js @@ -29,10 +29,7 @@ function createPurgeAdmin(options, { strapi }) { if (!(ctx.status >= 200 && ctx.status <= 300)) return; - await cacheStore.clearByUid(uid, { - ...params, - ...ctx.request.body, - }); + await cacheStore.clearByUid(uid, params); }; }