Skip to content

Commit

Permalink
[backend] fix id attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
marieflorescontact committed Mar 12, 2024
1 parent a3210c2 commit fe24e6b
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { ENTITY_TYPE_USER } from './internalObject';
import { ABSTRACT_STIX_CORE_OBJECT } from './general';
import { ABSTRACT_BASIC_OBJECT, ABSTRACT_BASIC_RELATIONSHIP } from './general';

export const shortMapping = {
type: 'text',
Expand Down Expand Up @@ -70,13 +70,14 @@ export const id: AttributeDefinition = {
name: 'id',
label: 'Id',
type: 'string',
format: 'short',
format: 'id',
update: false,
mandatoryType: 'no',
multiple: false,
editDefault: false,
upsert: false,
isFilterable: false,
entityTypes: [ABSTRACT_BASIC_OBJECT, ABSTRACT_BASIC_RELATIONSHIP]
};

export const internalId: AttributeDefinition = {
Expand All @@ -90,7 +91,7 @@ export const internalId: AttributeDefinition = {
multiple: false,
upsert: false,
isFilterable: false,
entityTypes: [ABSTRACT_STIX_CORE_OBJECT]
entityTypes: [ABSTRACT_BASIC_OBJECT, ABSTRACT_BASIC_RELATIONSHIP]
};

export const creators: AttributeDefinition = {
Expand Down

0 comments on commit fe24e6b

Please sign in to comment.