Move some repository transfer functions to service layer (#28855)

This commit is contained in:
Lunny Xiao 2024-02-05 14:17:23 +08:00 committed by GitHub
parent 2da233ad8b
commit 9bb1adf8ea
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 347 additions and 358 deletions

View file

@ -813,7 +813,7 @@ func SettingsPost(ctx *context.Context) {
return
}
if err := models.CancelRepositoryTransfer(ctx, ctx.Repo.Repository); err != nil {
if err := repo_service.CancelRepositoryTransfer(ctx, ctx.Repo.Repository); err != nil {
ctx.ServerError("CancelRepositoryTransfer", err)
return
}