Skip to content

Commit

Permalink
[Backend] Remove old modification on instance.name
Browse files Browse the repository at this point in the history
  • Loading branch information
Megafredo committed Dec 1, 2023
1 parent cb29cd7 commit b841582
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion opencti-platform/opencti-graphql/src/schema/identifier.js
Original file line number Diff line number Diff line change
Expand Up @@ -472,7 +472,7 @@ export const generateAliasesIdsForInstance = (instance) => {
throw UnsupportedError('Cant generate alias without entity type ', { instance });
}
if (isStixObjectAliased(instance.entity_type)) {
const aliases = [...(instance.aliases || []), ...(instance.x_opencti_aliases || [])];
const aliases = [instance.name, ...(instance.aliases || []), ...(instance.x_opencti_aliases || [])];
return generateAliasesId(aliases, instance);
}
return [];
Expand Down

0 comments on commit b841582

Please sign in to comment.