fixed record id condition

This commit is contained in:
DastInDark
2022-07-31 13:03:25 +09:00
parent 180bd6ba42
commit 3c5a629969

View File

@@ -213,7 +213,7 @@ impl Detection {
.record_information .record_information
.as_ref() .as_ref()
.map(|recinfo| recinfo.to_string()); .map(|recinfo| recinfo.to_string());
let rec_id = if !LOAEDED_PROFILE_ALIAS.contains("%RecordID%") { let rec_id = if LOAEDED_PROFILE_ALIAS.contains("%RecordID%") {
Some( Some(
get_serde_number_to_string(&record_info.record["Event"]["System"]["EventRecordID"]) get_serde_number_to_string(&record_info.record["Event"]["System"]["EventRecordID"])
.unwrap_or_default(), .unwrap_or_default(),