aboutsummaryrefslogtreecommitdiffstats
path: root/models/organization/team_repo.go
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2023-06-05 15:25:47 +0800
committerGitHub <noreply@github.com>2023-06-05 15:25:47 +0800
commit11598885b36871ba19e961fa59efecd38c17e01e (patch)
tree7c17b4c258e1cd2f457a44f09ed15317b01b9e24 /models/organization/team_repo.go
parentca35dec18b3d3d7dd5cde4c69a10ae830961faf7 (diff)
downloadgitea-11598885b36871ba19e961fa59efecd38c17e01e.tar.gz
gitea-11598885b36871ba19e961fa59efecd38c17e01e.zip
Use RepositoryList instead of []*Repository (#25074)
Diffstat (limited to 'models/organization/team_repo.go')
-rw-r--r--models/organization/team_repo.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/models/organization/team_repo.go b/models/organization/team_repo.go
index e6b50ecff7..1184e39263 100644
--- a/models/organization/team_repo.go
+++ b/models/organization/team_repo.go
@@ -37,7 +37,7 @@ type SearchTeamRepoOptions struct {
}
// GetRepositories returns paginated repositories in team of organization.
-func GetTeamRepositories(ctx context.Context, opts *SearchTeamRepoOptions) ([]*repo_model.Repository, error) {
+func GetTeamRepositories(ctx context.Context, opts *SearchTeamRepoOptions) (repo_model.RepositoryList, error) {
sess := db.GetEngine(ctx)
if opts.TeamID > 0 {
sess = sess.In("id",