Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions db-connector.go
Original file line number Diff line number Diff line change
Expand Up @@ -5817,6 +5817,8 @@ func DeleteKey(ctx context.Context, entity string, value string, orgIdList ...st
resp, err := project.Es.Document.Delete(ctx, opensearchapi.DocumentDeleteReq{
Index: strings.ToLower(GetESIndexPrefix(entity)),
DocumentID: value,
// Refresh so the delete is immediately reflected in reads; matches indexEs().
Params: opensearchapi.DocumentDeleteParams{Refresh: "true"},
})

if err != nil {
Expand Down
Loading