mirror of
https://github.com/go-gitea/gitea
synced 2025-07-05 18:17:19 +00:00
Use RepositoryList instead of []*Repository (#25074)
This commit is contained in:
@ -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",
|
||||
|
Reference in New Issue
Block a user