diff --git a/Packs/CommonScripts/ReleaseNotes/1_15_66.md b/Packs/CommonScripts/ReleaseNotes/1_15_66.md new file mode 100644 index 00000000000..99a4013e9cd --- /dev/null +++ b/Packs/CommonScripts/ReleaseNotes/1_15_66.md @@ -0,0 +1,6 @@ + +#### Scripts + +##### DeleteContext + +- Fixed an issue where 'DBotScore' key was not excluded from deletion, causing performance issues. diff --git a/Packs/CommonScripts/Scripts/DeleteContext/DeleteContext.js b/Packs/CommonScripts/Scripts/DeleteContext/DeleteContext.js index 651aa06f70b..9581b621de3 100644 --- a/Packs/CommonScripts/Scripts/DeleteContext/DeleteContext.js +++ b/Packs/CommonScripts/Scripts/DeleteContext/DeleteContext.js @@ -20,7 +20,7 @@ function deleteKeys(keysToDelete = [], _keysToKeep = []) { for (var key of keysToDelete) { // 'DBotScore' key shall not be deleted in order to prevent caching it repeatedly and impacting performance. if (key === "DBotScore"){ - continue + continue; } const originalKey = typeof key === "string" ? key.trim() : key; const keyToDelete = isSubPlaybookKey ? 'subplaybook-${currentPlaybookID}.' + originalKey: originalKey; diff --git a/Packs/CommonScripts/pack_metadata.json b/Packs/CommonScripts/pack_metadata.json index 02035fb2781..13a4578c813 100644 --- a/Packs/CommonScripts/pack_metadata.json +++ b/Packs/CommonScripts/pack_metadata.json @@ -2,7 +2,7 @@ "name": "Common Scripts", "description": "Frequently used scripts pack.", "support": "xsoar", - "currentVersion": "1.15.65", + "currentVersion": "1.15.66", "author": "Cortex XSOAR", "url": "https://www.paloaltonetworks.com/cortex", "email": "", @@ -58,4 +58,4 @@ "marketplacev2", "xpanse" ] -} +} \ No newline at end of file