Skip to content

Commit

Permalink
[Security Solution][Case] Fix unhandled promise when updating alert s…
Browse files Browse the repository at this point in the history
…tatus (#90605)
  • Loading branch information
cnasikas committed Feb 8, 2021
1 parent 4fd4f1d commit 0b5f9fa
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 0b5f9fa

Please sign in to comment.