Skip to content

Commit 36ddec9

Browse files
committed
Fix bug
1 parent fd1b398 commit 36ddec9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

models/organization/team_repo.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ func GetTeamRepositories(ctx context.Context, opts *SearchTeamRepoOptions) ([]*r
4343
sess = sess.In("id",
4444
builder.Select("repo_id").
4545
From("team_repo").
46-
Where(builder.Eq{"team_id = ?": opts.TeamID}),
46+
Where(builder.Eq{"team_id": opts.TeamID}),
4747
)
4848
}
4949
if opts.PageSize > 0 {

models/organization/team_user.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ func GetTeamMembers(ctx context.Context, opts *SearchMembersOptions) ([]*user_mo
6060
sess = sess.In("id",
6161
builder.Select("uid").
6262
From("team_user").
63-
Where(builder.Eq{"team_id = ?": opts.TeamID}),
63+
Where(builder.Eq{"team_id": opts.TeamID}),
6464
)
6565
}
6666
if opts.PageSize > 0 && opts.Page > -1 {

0 commit comments

Comments
 (0)