From 3c5a62996912406649b9c8ec563982a4eb6ac6f7 Mon Sep 17 00:00:00 2001 From: DastInDark <2350416+hitenkoku@users.noreply.github.com> Date: Sun, 31 Jul 2022 13:03:25 +0900 Subject: [PATCH] fixed record id condition --- src/detections/detection.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/detections/detection.rs b/src/detections/detection.rs index be6046c3..c8505e2e 100644 --- a/src/detections/detection.rs +++ b/src/detections/detection.rs @@ -213,7 +213,7 @@ impl Detection { .record_information .as_ref() .map(|recinfo| recinfo.to_string()); - let rec_id = if !LOAEDED_PROFILE_ALIAS.contains("%RecordID%") { + let rec_id = if LOAEDED_PROFILE_ALIAS.contains("%RecordID%") { Some( get_serde_number_to_string(&record_info.record["Event"]["System"]["EventRecordID"]) .unwrap_or_default(),