Skip to content

Commit

Permalink
Fixing recovered instance reference bug (#85412)
Browse files Browse the repository at this point in the history
  • Loading branch information
ymao1 authored Dec 10, 2020
1 parent b3d5dce commit 4885915
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion x-pack/plugins/alerts/server/task_runner/task_runner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -491,7 +491,7 @@ function generateNewAndRecoveredInstanceEvents(
const newIds = without(currentAlertInstanceIds, ...originalAlertInstanceIds);

for (const id of recoveredAlertInstanceIds) {
const actionGroup = originalAlertInstances[id].getLastScheduledActions()?.group;
const actionGroup = recoveredAlertInstances[id].getLastScheduledActions()?.group;
const message = `${params.alertLabel} instance '${id}' has recovered`;
logInstanceEvent(id, EVENT_LOG_ACTIONS.recoveredInstance, message, actionGroup);
}
Expand Down

0 comments on commit 4885915

Please sign in to comment.