Use RepositoryList instead of []*Repository (#25074)
This commit is contained in:
parent
ca35dec18b
commit
11598885b3
6 changed files with 10 additions and 10 deletions
|
@ -11,7 +11,7 @@ import (
|
|||
)
|
||||
|
||||
// GetOrgRepositories get repos belonging to the given organization
|
||||
func GetOrgRepositories(ctx context.Context, orgID int64) ([]*repo_model.Repository, error) {
|
||||
func GetOrgRepositories(ctx context.Context, orgID int64) (repo_model.RepositoryList, error) {
|
||||
var orgRepos []*repo_model.Repository
|
||||
return orgRepos, db.GetEngine(ctx).Where("owner_id = ?", orgID).Find(&orgRepos)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue