bug fixed for my repository (#933)

tokarchuk/v1.17
Lunny Xiao 8 years ago committed by GitHub
parent 7a9a5c8a69
commit 4cfde304df
  1. 8
      models/org.go

@ -657,9 +657,13 @@ func (env *accessibleReposEnv) Repos(page, pageSize int) ([]*Repository, error)
} }
repos := make([]*Repository, 0, len(repoIDs)) repos := make([]*Repository, 0, len(repoIDs))
if len(repoIDs) <= 0 {
return repos, nil
}
return repos, x. return repos, x.
Select("`repository`.*"). In("`repository`.id", repoIDs).
Where(builder.In("`repository`.id", repoIDs)).
Find(&repos) Find(&repos)
} }

Loading…
Cancel
Save