Skip to content

Commit

Permalink
chore: review
Browse files Browse the repository at this point in the history
  • Loading branch information
kamilczaja committed Dec 3, 2024
1 parent edb0e81 commit fe4b0df
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,9 @@ class KeycloakService(
userPassword: String?
): String {
// To avoid syncing issues, we assume our DB to be the source of truth, so we need to delete the potentially existing user in KC
val maybeExists = getUserIdByEmail(userEmail)
if (maybeExists != null) {
deleteUser(maybeExists)
val userIdIfExists = getUserIdByEmail(userEmail)
if (userIdIfExists != null) {
deleteUser(userIdIfExists)
}

val userId = createUser(
Expand Down

0 comments on commit fe4b0df

Please sign in to comment.