From 40716bbe210e57a2996201da834f578b61e2cbfb Mon Sep 17 00:00:00 2001 From: vadzz Date: Tue, 23 Jul 2024 14:33:06 +0300 Subject: [PATCH] Fix CF api. Bump version --- cfCacheCleaner.js | 3 ++- package.json | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/cfCacheCleaner.js b/cfCacheCleaner.js index 4910558..df06cde 100644 --- a/cfCacheCleaner.js +++ b/cfCacheCleaner.js @@ -50,7 +50,8 @@ async function clearCache(files) { // Call purgeCache on each subarray using Promise.all() const promises = chunks.map((chunk) => { - return CFClient.zones.purgeCache(ZONE_ID, { + return CFClient.cache.purge({ + zone_id: ZONE_ID, files: chunk }); }); diff --git a/package.json b/package.json index 0adb0cc..aff22b6 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@altmp/upload-tool", - "version": "1.2.5", + "version": "1.2.6", "author": "altMP Team", "bin": { "alt-upload": "./cli.js"