mirror of
https://github.com/zitadel/zitadel.git
synced 2025-12-12 06:42:59 +00:00
query change
This commit is contained in:
@@ -294,21 +294,28 @@ export async function listUsers(
|
||||
console.log("listUsers", userName, organizationId);
|
||||
return userService.listUsers(
|
||||
{
|
||||
queries: [
|
||||
{
|
||||
userNameQuery: {
|
||||
userName,
|
||||
method: TextQueryMethod.TEXT_QUERY_METHOD_EQUALS,
|
||||
},
|
||||
},
|
||||
{
|
||||
organizationIdQuery: organizationId
|
||||
? {
|
||||
queries: organizationId
|
||||
? [
|
||||
{
|
||||
userNameQuery: {
|
||||
userName,
|
||||
method: TextQueryMethod.TEXT_QUERY_METHOD_EQUALS,
|
||||
},
|
||||
},
|
||||
{
|
||||
organizationIdQuery: {
|
||||
organizationId,
|
||||
}
|
||||
: undefined,
|
||||
},
|
||||
],
|
||||
},
|
||||
},
|
||||
]
|
||||
: [
|
||||
{
|
||||
userNameQuery: {
|
||||
userName,
|
||||
method: TextQueryMethod.TEXT_QUERY_METHOD_EQUALS,
|
||||
},
|
||||
},
|
||||
],
|
||||
},
|
||||
{}
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user