Skip to content

Commit

Permalink
fix: update datasets fullquery to use pid instead of _id (#1182)
Browse files Browse the repository at this point in the history
* fix: updated fullquery query field example

* fix: update find query to use 'pid' instead of '_id
  • Loading branch information
Junjiequan authored Apr 19, 2024
1 parent f1af7c8 commit 617e4b4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/common/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -845,7 +845,7 @@ export const datasetsFullQueryDescriptionFields =
"metadataKey": "metadata", <optional>\n \
"_id": "item id", <optional>\n \
"userGroups": ["group1", ...], <optional>\n \
"sharedWith": "email", <optional>\n \
"sharedWith": ["email", ...], <optional>\n \
}\n \
</pre>';

Expand Down
2 changes: 1 addition & 1 deletion src/datasets/datasets.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ export class DatasetsService {
);

datasets = await this.datasetModel
.find({ _id: { $in: esResult.data } })
.find({ pid: { $in: esResult.data } })
.sort(modifiers.sort)
.exec();
}
Expand Down

0 comments on commit 617e4b4

Please sign in to comment.