Skip to content

Commit af07c91

Browse files
fix more build errors
1 parent 21d6b92 commit af07c91

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

services/convert/repo_group.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ func ToAPIGroup(ctx context.Context, g *group_model.Group, actor *user_model.Use
2929
}); err != nil {
3030
return nil, err
3131
}
32-
if _, apiGroup.NumRepos, err = repo_model.SearchRepositoryByCondition(ctx, &repo_model.SearchRepoOptions{
32+
if _, apiGroup.NumRepos, err = repo_model.SearchRepositoryByCondition(ctx, repo_model.SearchRepoOptions{
3333
GroupID: g.ID,
3434
Actor: actor,
3535
OwnerID: g.OwnerID,

services/group/delete.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,13 @@ func DeleteGroup(ctx context.Context, gid int64) error {
3131
}
3232

3333
// move all repos in the deleted group to its immediate parent
34-
repos, cnt, err := repo_model.SearchRepository(ctx, &repo_model.SearchRepoOptions{
34+
repos, cnt, err := repo_model.SearchRepository(ctx, repo_model.SearchRepoOptions{
3535
GroupID: gid,
3636
})
3737
if err != nil {
3838
return err
3939
}
40-
_, inParent, err := repo_model.SearchRepository(ctx, &repo_model.SearchRepoOptions{
40+
_, inParent, err := repo_model.SearchRepository(ctx, repo_model.SearchRepoOptions{
4141
GroupID: toDelete.ParentGroupID,
4242
})
4343
if err != nil {

services/group/group.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ func MoveGroupItem(ctx context.Context, itemID, newParent int64, isGroup bool, n
9696
}
9797
if newPos < 0 {
9898
var repoCount int64
99-
repoCount, err = repo_model.CountRepository(ctx, &repo_model.SearchRepoOptions{
99+
repoCount, err = repo_model.CountRepository(ctx, repo_model.SearchRepoOptions{
100100
GroupID: newParent,
101101
})
102102
if err != nil {

services/group/search.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ type GroupWebSearchOptions struct {
3535
Locale translation.Locale
3636
Recurse bool
3737
Actor *user_model.User
38-
RepoOpts *repo_model.SearchRepoOptions
38+
RepoOpts repo_model.SearchRepoOptions
3939
GroupOpts *group_model.FindGroupsOptions
4040
OrgID int64
4141
}

0 commit comments

Comments
 (0)