Skip to content

Commit

Permalink
Merge branch 'main' into lunny/render_iframe
Browse files Browse the repository at this point in the history
  • Loading branch information
wxiaoguang authored Jun 15, 2022
2 parents 631fea3 + f0ce547 commit 169362d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions services/mirror/mirror.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ func Update(ctx context.Context, pullLimit, pushLimit int) error {
var item SyncRequest
var repo *repo_model.Repository
if m, ok := bean.(*repo_model.Mirror); ok {
if m.Repo == nil {
if m.GetRepository() == nil {
log.Error("Disconnected mirror found: %d", m.ID)
return nil
}
Expand All @@ -73,7 +73,7 @@ func Update(ctx context.Context, pullLimit, pushLimit int) error {
ReferenceID: m.RepoID,
}
} else if m, ok := bean.(*repo_model.PushMirror); ok {
if m.Repo == nil {
if m.GetRepository() == nil {
log.Error("Disconnected push-mirror found: %d", m.ID)
return nil
}
Expand Down

0 comments on commit 169362d

Please sign in to comment.