From 88a119bc31550882e6b54868c47c51cbaa86b99e Mon Sep 17 00:00:00 2001 From: FrankHassanabad Date: Wed, 25 Aug 2021 14:34:14 -0600 Subject: [PATCH] Updated from PR review --- .../rule_types/create_security_rule_type_factory.ts | 2 +- .../lib/detection_engine/signals/signal_rule_alert_type.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/x-pack/plugins/security_solution/server/lib/detection_engine/rule_types/create_security_rule_type_factory.ts b/x-pack/plugins/security_solution/server/lib/detection_engine/rule_types/create_security_rule_type_factory.ts index d9f36f1f69ccf..879d776f83df2 100644 --- a/x-pack/plugins/security_solution/server/lib/detection_engine/rule_types/create_security_rule_type_factory.ts +++ b/x-pack/plugins/security_solution/server/lib/detection_engine/rule_types/create_security_rule_type_factory.ts @@ -280,7 +280,7 @@ export const createSecurityRuleTypeFactory: CreateSecurityRuleTypeFactory = ({ logger.info(buildRuleMessage(`Found ${createdSignalsCount} signals for notification.`)); if (ruleSO.attributes.throttle != null) { - scheduleThrottledNotificationActions({ + await scheduleThrottledNotificationActions({ alertInstance: services.alertInstanceFactory(alertId), throttle: ruleSO.attributes.throttle, startedAt, diff --git a/x-pack/plugins/security_solution/server/lib/detection_engine/signals/signal_rule_alert_type.ts b/x-pack/plugins/security_solution/server/lib/detection_engine/signals/signal_rule_alert_type.ts index 37db1368baeae..1c4efea0a1d59 100644 --- a/x-pack/plugins/security_solution/server/lib/detection_engine/signals/signal_rule_alert_type.ts +++ b/x-pack/plugins/security_solution/server/lib/detection_engine/signals/signal_rule_alert_type.ts @@ -407,7 +407,7 @@ export const signalRulesAlertType = ({ ); if (savedObject.attributes.throttle != null) { - scheduleThrottledNotificationActions({ + await scheduleThrottledNotificationActions({ alertInstance: services.alertInstanceFactory(alertId), throttle: savedObject.attributes.throttle, startedAt,