Skip to content

Commit 2e0df82

Browse files
Fix script definition
1 parent a42b90b commit 2e0df82

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

internal/pkg/checkin/bulk.go

+5-4
Original file line numberDiff line numberDiff line change
@@ -214,10 +214,11 @@ func (bc *Bulk) flush(ctx context.Context) error {
214214
return err
215215
}
216216
action := &estypes.UpdateAction{
217-
Script: &estypes.InlineScript{
218-
Lang: &scriptlanguage.Painless,
219-
Source: deleteAuditAttributesScript,
220-
Params: params,
217+
Script: &estypes.Script{
218+
Lang: &scriptlanguage.Painless,
219+
Source: &deleteAuditAttributesScript,
220+
Options: map[string]string{},
221+
Params: params,
221222
},
222223
}
223224
body, err = json.Marshal(&action)

0 commit comments

Comments
 (0)