summaryrefslogtreecommitdiffstats
path: root/services/org/org.go
diff options
context:
space:
mode:
Diffstat (limited to 'services/org/org.go')
-rw-r--r--services/org/org.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/services/org/org.go b/services/org/org.go
index d7b3019e74..b24b7e34c4 100644
--- a/services/org/org.go
+++ b/services/org/org.go
@@ -26,7 +26,7 @@ func DeleteOrganization(org *organization.Organization) error {
defer commiter.Close()
// Check ownership of repository.
- count, err := repo_model.GetRepositoryCount(ctx, org.ID)
+ count, err := repo_model.CountRepositories(ctx, repo_model.CountRepositoryOptions{OwnerID: org.ID})
if err != nil {
return fmt.Errorf("GetRepositoryCount: %v", err)
} else if count > 0 {