Skip to content

Commit

Permalink
Fixed merge issue
Browse files Browse the repository at this point in the history
  • Loading branch information
YulNaumenko committed Nov 10, 2020
1 parent 378fa7c commit 8f48a39
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions x-pack/plugins/alerts/server/task_runner/task_runner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ export class TaskRunner {
alertInstances,
executionHandler,
originalAlertInstanceIds,
currentAlertInstanceIds
instancesWithScheduledActions
);

generateNewAndResolvedInstanceEvents({
Expand Down Expand Up @@ -464,8 +464,9 @@ function scheduleActionsForResolvedInstances(
},
executionHandler: ReturnType<typeof createExecutionHandler>,
originalAlertInstanceIds: string[],
currentAlertInstanceIds: string[]
currentAlertInstances: Dictionary<AlertInstance>
) {
const currentAlertInstanceIds = Object.keys(currentAlertInstances);
const resolvedIds = without(originalAlertInstanceIds, ...currentAlertInstanceIds);
for (const id of resolvedIds) {
alertInstancesMap[id].updateLastScheduledActions(ResolvedActionGroup.id);
Expand Down

0 comments on commit 8f48a39

Please sign in to comment.