Skip to content

Commit

Permalink
[backend] remove limitation for updating non-multiple objects
Browse files Browse the repository at this point in the history
  • Loading branch information
labo-flg committed Dec 28, 2023
1 parent 6338312 commit 0877073
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions opencti-platform/opencti-graphql/src/database/middleware.js
Original file line number Diff line number Diff line change
Expand Up @@ -891,9 +891,6 @@ const rebuildAndMergeInputFromExistingData = (rawInput, instance) => {
if (isDictionaryAttribute(key) && isNotEmptyField(R.head(value))) { // Only allow full cleanup
throw UnsupportedError('Dictionary attribute cant be updated directly', { rawInput });
}
if (!isMultiple && isObjectAttribute(key)) {
throw UnsupportedError('Object update only available for array attributes', { rawInput });
}
// region rebuild input values consistency
if (key.includes('.')) {
// In case of dict attributes, patching the content is possible through first level path
Expand Down

0 comments on commit 0877073

Please sign in to comment.