Skip to content

Commit

Permalink
fix(cli): allow sort to be null
Browse files Browse the repository at this point in the history
  • Loading branch information
EdouardDem committed Oct 17, 2024
1 parent d86c261 commit 8979973
Showing 1 changed file with 10 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -124,8 +124,16 @@ export class PoliciesIdMapperClient extends IdMapperClient {
_and: [
// @ts-expect-error TODO: Bad SDK Typing
{ roles: { role: { _null: true } } },
// @ts-expect-error TODO: Bad SDK Typing
{ roles: { sort: { _eq: 1 } } },
{
_or: [
// @ts-expect-error TODO: Bad SDK Typing
{ roles: { sort: { _eq: 1 } } },
// Allow to find the policy even if the sort is not set.
// This may occur after migrations from 10.x to 11.x
// @ts-expect-error TODO: Bad SDK Typing
{ roles: { sort: { _null: true } } },
],
},
],
},
limit: 1,
Expand Down

0 comments on commit 8979973

Please sign in to comment.