Skip to content

Commit

Permalink
[backend] Fix linterÃ
Browse files Browse the repository at this point in the history
  • Loading branch information
Megafredo committed Nov 9, 2023
1 parent 1a3bec4 commit 5ba023b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions opencti-platform/opencti-graphql/src/database/middleware.js
Original file line number Diff line number Diff line change
Expand Up @@ -1805,13 +1805,13 @@ export const updateAttributeMetaResolved = async (context, user, initial, inputs

const filteredUpdates = updates.map((item) => {
if (item.key === ATTRIBUTE_ALIASES || item.key === ATTRIBUTE_ALIASES_OPENCTI) {
const filteredValues = item.value.filter(e => normalizeName(e) !== normalizeName(initial.name));
const filteredValues = item.value.filter((e) => normalizeName(e) !== normalizeName(initial.name));
return {
...item,
value: filteredValues
}
};
} return item;
})
});

// Region - Pre-Check
const elementsByKey = R.groupBy((e) => e.key, filteredUpdates);
Expand Down

0 comments on commit 5ba023b

Please sign in to comment.