Skip to content

Commit

Permalink
fix: user deletion
Browse files Browse the repository at this point in the history
  • Loading branch information
kamilczaja committed Dec 9, 2024
1 parent 4f432a2 commit a77d4f2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -102,11 +102,12 @@ class UserDeletionApiService(
userService.deleteInvitationReferencesToOrgMembers(orgMemberIds)
userService.deleteOrganizationIds(orgMemberIds)

keycloakService.deleteOrganization(organizationId)
organizationService.deleteOrganization(organizationId)
keycloakService.deleteUsers(orgMemberIds)
userService.deleteUsers(orgMemberIds)

keycloakService.deleteUsers(orgMemberIds)
keycloakService.deleteOrganization(organizationId)

Log.info(
"Organization and related users, connectors and central components deleted. " +
"organization=${organizationId}, adminUserId=$adminUserId."
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ class ConnectorService(
val c = Tables.CONNECTOR
dsl.update(c)
.setNull(c.PROVIDER_ORGANIZATION_ID)
.setNull(c.CREATED_BY)
.where(c.PROVIDER_ORGANIZATION_ID.eq(organizationId))
.execute()
}
Expand Down

0 comments on commit a77d4f2

Please sign in to comment.