[Detection Engine] Update alert apiKey when the rule is updated (#67364)

This commit is contained in:
patrykkopycinski 2020-05-26 23:47:14 +02:00 committed by GitHub
parent 09e36b6498
commit f56845d47b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -45,5 +45,8 @@ export const updateRulesNotifications = async ({
interval: ruleActions.alertThrottle,
});
// TODO: Workaround for https://github.com/elastic/kibana/issues/67290
await alertsClient.updateApiKey({ id: ruleAlertId });
return ruleActions;
};