From 8e835999ca89c30cfde654cf7ae412c39cb9733b Mon Sep 17 00:00:00 2001 From: alexrohozneanu <53479034+alexrohozneanu@users.noreply.github.com> Date: Sat, 5 Oct 2024 08:25:03 +0300 Subject: [PATCH] fix: changed sync get user id to async get user in create user async function (#600) Co-authored-by: Alex Rohozneanu --- src/keycloak/keycloak_admin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/keycloak/keycloak_admin.py b/src/keycloak/keycloak_admin.py index 2c61b08..0ec3985 100644 --- a/src/keycloak/keycloak_admin.py +++ b/src/keycloak/keycloak_admin.py @@ -4760,7 +4760,7 @@ class KeycloakAdmin: params_path = {"realm-name": self.connection.realm_name} if exist_ok: - exists = self.get_user_id(username=payload["username"]) + exists = await self.a_get_user_id(username=payload["username"]) if exists is not None: return str(exists)