diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2023-06-05 15:25:47 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-05 15:25:47 +0800 |
commit | 11598885b36871ba19e961fa59efecd38c17e01e (patch) | |
tree | 7c17b4c258e1cd2f457a44f09ed15317b01b9e24 /models/organization/team_repo.go | |
parent | ca35dec18b3d3d7dd5cde4c69a10ae830961faf7 (diff) | |
download | gitea-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.go | 2 |
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", |