mirror of
https://codeberg.org/davrot/forgejo.git
synced 2025-05-20 14:00:04 +02:00
#2018 able to sync now for mirrors
- Refactor code to use sync.UniqueQueue - Closes #3509
This commit is contained in:
parent
c1ecb6c60a
commit
8516dfcb6c
16 changed files with 345 additions and 242 deletions
|
@ -216,7 +216,7 @@ func RepoAssignment(args ...bool) macaron.Handler {
|
|||
ctx.Data["HasAccess"] = true
|
||||
|
||||
if repo.IsMirror {
|
||||
ctx.Repo.Mirror, err = models.GetMirror(repo.ID)
|
||||
ctx.Repo.Mirror, err = models.GetMirrorByRepoID(repo.ID)
|
||||
if err != nil {
|
||||
ctx.Handle(500, "GetMirror", err)
|
||||
return
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue