Skip to content

Commit 01fc828

Browse files
GuyAfikContent Bot
and
Content Bot
authored
Code42 collector fix first fetch (demisto#34067)
* fix * bump rn * Bump pack from version Code42 to 5.0.2. --------- Co-authored-by: Content Bot <[email protected]>
1 parent 5f287fb commit 01fc828

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

Packs/Code42/Integrations/Code42EventCollector/Code42EventCollector.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ def fetch_file_events(client: Client, last_run: dict, max_fetch_file_events: int
226226
new_last_run = last_run.copy()
227227
new_last_run.pop("nextTrigger", None)
228228
file_event_time = dateparser.parse(last_run[FileEventLastRun.TIME]) if FileEventLastRun.TIME in last_run else (
229-
datetime.now() - timedelta(minutes=240)
229+
datetime.now() - timedelta(minutes=1)
230230
)
231231

232232
file_events = client.get_file_events(file_event_time, limit=max_fetch_file_events) # type: ignore[arg-type]

Packs/Code42/ReleaseNotes/5_0_2.md

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
2+
#### Integrations
3+
4+
##### Code42 Event Collector
5+
6+
- Fixed an issue where the first fetch when fetching file-events was 4 hours by default.

Packs/Code42/pack_metadata.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "Code42",
33
"description": "The Code42 INCYDR integration accelerates insider threat incident response and remediation procedures for potential data exfiltration across computers, email, cloud and SaaS apps.",
44
"support": "xsoar",
5-
"currentVersion": "5.0.1",
5+
"currentVersion": "5.0.2",
66
"author": "Code42",
77
"url": "https://support.code42.com/Administrator/Cloud/Monitoring_and_managing/Install_and_manage_the_Code42_app_for_Cortex_XSOAR",
88
"email": "[email protected]",

0 commit comments

Comments
 (0)