Skip to content

Commit

Permalink
Call formatAlert before passing alert to “for each alert” context
Browse files Browse the repository at this point in the history
  • Loading branch information
e40pud committed Apr 25, 2023
1 parent b2832bd commit 62a6b77
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ export const createPersistenceRuleTypeWrapper: CreatePersistenceRuleTypeWrapper
start: Date.parse(alert[TIMESTAMP]),
end: Date.parse(alert[TIMESTAMP]),
}),
alerts: [alert],
alerts: [formatAlert?.(alert) ?? alert],
})
);

Expand Down Expand Up @@ -385,7 +385,7 @@ export const createPersistenceRuleTypeWrapper: CreatePersistenceRuleTypeWrapper
start: Date.parse(alert[TIMESTAMP]),
end: Date.parse(alert[TIMESTAMP]),
}),
alerts: [alert],
alerts: [formatAlert?.(alert) ?? alert],
})
);

Expand Down

0 comments on commit 62a6b77

Please sign in to comment.