Skip to content

Commit

Permalink
fix: changed sync get user id to async get user in create user async …
Browse files Browse the repository at this point in the history
…function (#600)

Co-authored-by: Alex Rohozneanu <[email protected]>
  • Loading branch information
alexrohozneanu and Alex Rohozneanu authored Oct 5, 2024
1 parent 966664d commit 8e83599
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/keycloak/keycloak_admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -4760,7 +4760,7 @@ async def a_create_user(self, payload, exist_ok=False):
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)
Expand Down

0 comments on commit 8e83599

Please sign in to comment.