fix more build errors

This commit is contained in:
☙◦ The Tablet ❀ GamerGirlandCo ◦❧
2026-04-02 20:00:50 -04:00
parent 0f6bd6bc5e
commit c84d2277de
4 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -29,7 +29,7 @@ func ToAPIGroup(ctx context.Context, g *group_model.Group, actor *user_model.Use
}); err != nil {
return nil, err
}
if _, apiGroup.NumRepos, err = repo_model.SearchRepositoryByCondition(ctx, &repo_model.SearchRepoOptions{
if _, apiGroup.NumRepos, err = repo_model.SearchRepositoryByCondition(ctx, repo_model.SearchRepoOptions{
GroupID: g.ID,
Actor: actor,
OwnerID: g.OwnerID,
+2 -2
View File
@@ -31,13 +31,13 @@ func DeleteGroup(ctx context.Context, gid int64) error {
}
// move all repos in the deleted group to its immediate parent
repos, cnt, err := repo_model.SearchRepository(ctx, &repo_model.SearchRepoOptions{
repos, cnt, err := repo_model.SearchRepository(ctx, repo_model.SearchRepoOptions{
GroupID: gid,
})
if err != nil {
return err
}
_, inParent, err := repo_model.SearchRepository(ctx, &repo_model.SearchRepoOptions{
_, inParent, err := repo_model.SearchRepository(ctx, repo_model.SearchRepoOptions{
GroupID: toDelete.ParentGroupID,
})
if err != nil {
+1 -1
View File
@@ -96,7 +96,7 @@ func MoveGroupItem(ctx context.Context, itemID, newParent int64, isGroup bool, n
}
if newPos < 0 {
var repoCount int64
repoCount, err = repo_model.CountRepository(ctx, &repo_model.SearchRepoOptions{
repoCount, err = repo_model.CountRepository(ctx, repo_model.SearchRepoOptions{
GroupID: newParent,
})
if err != nil {
+1 -1
View File
@@ -35,7 +35,7 @@ type GroupWebSearchOptions struct {
Locale translation.Locale
Recurse bool
Actor *user_model.User
RepoOpts *repo_model.SearchRepoOptions
RepoOpts repo_model.SearchRepoOptions
GroupOpts *group_model.FindGroupsOptions
OrgID int64
}