Skip to content

Commit

Permalink
[7.x] [Security Solution][Case] Fix unhandled promise when updating a…
Browse files Browse the repository at this point in the history
…lert status (#90605) (#90647)

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
  • Loading branch information
cnasikas and kibanamachine authored Feb 8, 2021
1 parent a17e969 commit fa5933f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion x-pack/plugins/case/server/client/comments/add.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ export const addComment = ({

// If the case is synced with alerts the newly attached alert must match the status of the case.
if (newComment.attributes.type === CommentType.alert && myCase.attributes.settings.syncAlerts) {
caseClient.updateAlertsStatus({
await caseClient.updateAlertsStatus({
ids: [newComment.attributes.alertId],
status: myCase.attributes.status,
});
Expand Down

0 comments on commit fa5933f

Please sign in to comment.