Skip to content

Commit

Permalink
Reverting unnecessary change
Browse files Browse the repository at this point in the history
  • Loading branch information
ymao1 committed Dec 20, 2022
1 parent a486d9d commit 78c2c07
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions x-pack/plugins/alerting/server/routes/create_rule.ts
Original file line number Diff line number Diff line change
Expand Up @@ -128,18 +128,8 @@ export const createRuleRoute = ({ router, licenseState, usageCounter }: RouteOpt
await rulesClient.create<RuleTypeParams>({
data: rewriteBodyReq({
...rule,
actions: rule.actions.map((action) => {
return {
...action,
frequency: {
summary: true,
throttle: null,
notifyWhen: 'onActiveAlert',
},
};
}),
notify_when: undefined,
throttle: undefined,
actions: rewriteActions(rule.actions),
notify_when: rule.notify_when as RuleNotifyWhenType,
}),
options: { id: params?.id },
});
Expand Down

0 comments on commit 78c2c07

Please sign in to comment.