fix bug where builder.In cond for groups and teams was not placed into the builder.Or cond

This commit is contained in:
☙◦ The Tablet ❀ GamerGirlandCo ◦❧ committed 2026-04-02 20:00:55 -04:00
1 parent 6bb7598555
commit 365769e2f7
1 file changed
+3 -2
+3 -2
View File
@@ -35,8 +35,9 @@ func GetTeamRepositories(ctx context.Context, opts *SearchTeamRepoOptions) (Repo
builder.In("id", builder.Select("repo_id"). builder.In("id", builder.Select("repo_id").
From("team_repo"). From("team_repo").
Where(builder.Eq{"team_id": opts.TeamID}), Where(builder.Eq{"team_id": opts.TeamID}),
)), ),
builder.In("id", ReposAccessibleByGroupTeamBuilder(opts.TeamID)), builder.In("id", ReposAccessibleByGroupTeamBuilder(opts.TeamID)),
),
) )
} }
if opts.PageSize > 0 { if opts.PageSize > 0 {