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 5987976
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
alter table connector alter column created_by drop not null;
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 5987976

Please sign in to comment.