Skip to content

Commit 14a50bf

Browse files
Update x-pack/platform/plugins/shared/rule_registry/server/utils/alert_client_bulk_update_scripts.ts
Co-authored-by: Copilot <[email protected]>
1 parent ac67832 commit 14a50bf

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

x-pack/platform/plugins/shared/rule_registry/server/utils/alert_client_bulk_update_scripts.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,13 @@ import {
1010
ALERT_WORKFLOW_TAGS,
1111
} from '../../common/technical_rule_data_field_names';
1212

13-
export const getStatusUpdateScript = (status: string) => {
13+
export const getStatusUpdateScript = () => {
1414
return `
1515
if (ctx._source['${ALERT_WORKFLOW_STATUS}'] != null) {
16-
ctx._source['${ALERT_WORKFLOW_STATUS}'] = '${status}';
16+
ctx._source['${ALERT_WORKFLOW_STATUS}'] = params.status;
1717
}
1818
if (ctx._source.signal != null && ctx._source.signal.status != null) {
19-
ctx._source.signal.status = '${status}';
19+
ctx._source.signal.status = params.status;
2020
}
2121
`;
2222
};

0 commit comments

Comments
 (0)