Skip to content

Commit

Permalink
[backend] Fix reindexing fail error (#7031)
Browse files Browse the repository at this point in the history
  • Loading branch information
SouadHadjiat authored Jun 5, 2024
1 parent 46311c2 commit 4da1e98
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion opencti-platform/opencti-graphql/src/database/engine.js
Original file line number Diff line number Diff line change
Expand Up @@ -3258,7 +3258,7 @@ export const elReindexElements = async (context, user, ids, sourceIndex, destInd
index: destIndex
},
script: { // remove old fields that are not mapped anymore but can be present in DB
source: "ctx._source.remove('fromType'); ctx._source.remove('toType'); ctx._source.remove('spec_version');"
source: "ctx._source.remove('fromType'); ctx._source.remove('toType'); ctx._source.remove('spec_version'); ctx._source.remove('representative');"
},
}
};
Expand Down

0 comments on commit 4da1e98

Please sign in to comment.