Skip to content

Commit

Permalink
Merge pull request #414 from cho4036/develop
Browse files Browse the repository at this point in the history
bugfix. fix delete tks role API
  • Loading branch information
seungkyua authored Apr 22, 2024
2 parents da53a5a + 4f12238 commit a2f0337
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion internal/usecase/role.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,11 @@ func (r RoleUsecase) GetTksRole(ctx context.Context, organizationId string, id s
}

func (r RoleUsecase) DeleteTksRole(ctx context.Context, organizationId string, id string) error {
err := r.kc.DeleteGroup(ctx, organizationId, id)
role, err := r.repo.GetTksRole(ctx, organizationId, id)
if err != nil {
return err
}
err = r.kc.DeleteGroup(ctx, organizationId, role.Name+"@"+organizationId)
if err != nil {
return err
}
Expand Down

0 comments on commit a2f0337

Please sign in to comment.