1
0
mirror of https://github.com/go-gitea/gitea.git synced 2024-11-04 08:17:24 -05:00

bug fixed for my repository (#933)

This commit is contained in:
Lunny Xiao 2017-02-14 23:37:44 +08:00 committed by GitHub
parent 7a9a5c8a69
commit 4cfde304df

View File

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