Skip to content

Commit

Permalink
fix: workspaces can't be query
Browse files Browse the repository at this point in the history
Signed-off-by: Lin Wang <[email protected]>
  • Loading branch information
wanglam committed Sep 28, 2023
1 parent d3b83bf commit 241d2c1
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ function getClauseForWorkspace(workspace: string) {

return {
bool: {
must: [{ term: { workspaces: workspace } }],
must: [{ term: { 'workspaces.keyword': workspace } }],
},
};
}
Expand Down Expand Up @@ -297,7 +297,7 @@ export function getQueryParams({
if (ACLSearchParams.workspaces) {
shouldClause.push({
terms: {
workspaces: ACLSearchParams.workspaces,
'workspaces.keyword': ACLSearchParams.workspaces,
},
});
}
Expand Down

0 comments on commit 241d2c1

Please sign in to comment.