aboutsummaryrefslogtreecommitdiffstats
path: root/services/org/user.go
diff options
context:
space:
mode:
Diffstat (limited to 'services/org/user.go')
-rw-r--r--services/org/user.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/services/org/user.go b/services/org/user.go
index 3565ecc2fc..26927253d2 100644
--- a/services/org/user.go
+++ b/services/org/user.go
@@ -64,10 +64,11 @@ func RemoveOrgUser(ctx context.Context, org *organization.Organization, user *us
if err != nil {
return fmt.Errorf("AccessibleReposEnv: %w", err)
}
- repoIDs, err := env.RepoIDs(ctx, 1, org.NumRepos)
+ repoIDs, err := env.RepoIDs(ctx)
if err != nil {
return fmt.Errorf("GetUserRepositories [%d]: %w", user.ID, err)
}
+
for _, repoID := range repoIDs {
repo, err := repo_model.GetRepositoryByID(ctx, repoID)
if err != nil {