diff options
Diffstat (limited to 'routers/web/org/setting.go')
-rw-r--r-- | routers/web/org/setting.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/routers/web/org/setting.go b/routers/web/org/setting.go index 6c7f9ed62b..081e103f79 100644 --- a/routers/web/org/setting.go +++ b/routers/web/org/setting.go @@ -12,6 +12,7 @@ import ( "code.gitea.io/gitea/models" "code.gitea.io/gitea/models/db" + repo_model "code.gitea.io/gitea/models/repo" user_model "code.gitea.io/gitea/models/user" "code.gitea.io/gitea/models/webhook" "code.gitea.io/gitea/modules/base" @@ -125,7 +126,7 @@ func SettingsPost(ctx *context.Context) { } } } else if nameChanged { - if err := models.UpdateRepositoryOwnerNames(org.ID, org.Name); err != nil { + if err := repo_model.UpdateRepositoryOwnerNames(org.ID, org.Name); err != nil { ctx.ServerError("UpdateRepository", err) return } |