Skip to content

Commit

Permalink
[backend] relationship_type filter in widgets (#6065)
Browse files Browse the repository at this point in the history
  • Loading branch information
Archidoit committed Feb 21, 2024
1 parent 2b5790b commit 24c9585
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -449,7 +449,7 @@ export const timeSeriesEntities = async (context, user, types, args) => {
};
export const timeSeriesRelations = async (context, user, args) => {
const { startDate, endDate, relationship_type: relationshipTypes, interval } = args;
const types = relationshipTypes || ['stix-core-relationship'];
const types = relationshipTypes || ['stix-core-relationship', 'object', 'stix-sighting-relationship'];
const timeSeriesArgs = buildEntityFilters(types, args);
const histogramData = await elHistogramCount(context, user, args.onlyInferred ? INDEX_INFERRED_RELATIONSHIPS : READ_RELATIONSHIPS_INDICES, timeSeriesArgs);
return fillTimeSeries(startDate, endDate, interval, histogramData);
Expand Down

0 comments on commit 24c9585

Please sign in to comment.