Skip to content

Commit

Permalink
Fix CF api. Bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
vadzz-dev committed Jul 23, 2024
1 parent 05043d3 commit 40716bb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion cfCacheCleaner.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
});
});
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@altmp/upload-tool",
"version": "1.2.5",
"version": "1.2.6",
"author": "altMP Team",
"bin": {
"alt-upload": "./cli.js"
Expand Down

0 comments on commit 40716bb

Please sign in to comment.