Skip to content

Commit

Permalink
fixed always firing alert
Browse files Browse the repository at this point in the history
  • Loading branch information
gmmorris committed Nov 5, 2020
1 parent 4b36391 commit afc6e81
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,12 @@ export const alertType: AlertType = {
const count = (state.count ?? 0) + 1;

range(instances)
.map(() => ({ id: uuid.v4(), tshirtSize: ACTION_GROUPS[random(0, 2)] }))
.map(() => ({ id: uuid.v4(), tshirtSize: ACTION_GROUPS[random(0, 2)].id! }))
.forEach((instance: { id: string; tshirtSize: string }) => {
services
.alertInstanceFactory(instance.id)
.replaceState({ triggerdOnCycle: count })
.scheduleActions(tshirtSize);
.scheduleActions(instance.tshirtSize);
});

return {
Expand Down

0 comments on commit afc6e81

Please sign in to comment.