Skip to content

Commit

Permalink
feat: Add name in attributes selected for buildFilesQueryByLabels
Browse files Browse the repository at this point in the history
since we need it to filter on it
  • Loading branch information
JF-Cozy committed May 5, 2022
1 parent 5b33432 commit d66c975
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/cozy-mespapiers-lib/src/helpers/queries.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export const buildFilesQueryByLabels = labels => {
trashed: false
})
.indexFields(['metadata.qualification.label'])
.select(['metadata.qualification.label'])
.select(['name', 'metadata.qualification.label'])
.limitBy(1000),
options: {
as: `${FILES_DOCTYPE}/${JSON.stringify(labels)}`,
Expand Down

0 comments on commit d66c975

Please sign in to comment.