Skip to content

Commit

Permalink
Small correction on extractSourceFields from reference data fields
Browse files Browse the repository at this point in the history
  • Loading branch information
brunotannus committed Jan 29, 2024
1 parent 32f96fd commit 6fd574c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/schema/query/recordsAggregation.query.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ const extractSourceFields = (
} else if (filter.field) {
if (
typeof filter.field === 'string' &&
!fields.includes(filter.field) &&
!fields.includes(filter.field.split('.')[0]) &&
allFields.concat(DEFAULT_FIELDS).includes(filter.field.split('.')[0])
) {
fields.push(filter.field.split('.')[0]);
Expand Down

0 comments on commit 6fd574c

Please sign in to comment.