forked from kevadesu/forgejo
Move some repository transfer functions to service layer (#28855)
This commit is contained in:
parent
2da233ad8b
commit
9bb1adf8ea
8 changed files with 347 additions and 358 deletions
|
@ -230,5 +230,5 @@ func acceptOrRejectRepoTransfer(ctx *context.APIContext, accept bool) error {
|
|||
return repo_service.TransferOwnership(ctx, repoTransfer.Doer, repoTransfer.Recipient, ctx.Repo.Repository, repoTransfer.Teams)
|
||||
}
|
||||
|
||||
return models.CancelRepositoryTransfer(ctx, ctx.Repo.Repository)
|
||||
return repo_service.CancelRepositoryTransfer(ctx, ctx.Repo.Repository)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue