mirror of
https://github.com/zitadel/zitadel.git
synced 2025-12-12 12:03:17 +00:00
fix build
This commit is contained in:
@@ -5,7 +5,10 @@ export async function POST(request: NextRequest) {
|
|||||||
const body = await request.json();
|
const body = await request.json();
|
||||||
if (body) {
|
if (body) {
|
||||||
const { loginName, organization } = body;
|
const { loginName, organization } = body;
|
||||||
return listUsers(loginName, organization).then((users) => {
|
return listUsers({
|
||||||
|
userName: loginName,
|
||||||
|
organizationId: organization,
|
||||||
|
}).then((users) => {
|
||||||
if (
|
if (
|
||||||
users.details &&
|
users.details &&
|
||||||
Number(users.details.totalResult) == 1 &&
|
Number(users.details.totalResult) == 1 &&
|
||||||
|
|||||||
Reference in New Issue
Block a user