Skip to content

Commit

Permalink
Fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
lunny committed Mar 29, 2022
1 parent fd1b398 commit 36ddec9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion models/organization/team_repo.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ func GetTeamRepositories(ctx context.Context, opts *SearchTeamRepoOptions) ([]*r
sess = sess.In("id",
builder.Select("repo_id").
From("team_repo").
Where(builder.Eq{"team_id = ?": opts.TeamID}),
Where(builder.Eq{"team_id": opts.TeamID}),
)
}
if opts.PageSize > 0 {
Expand Down
2 changes: 1 addition & 1 deletion models/organization/team_user.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ func GetTeamMembers(ctx context.Context, opts *SearchMembersOptions) ([]*user_mo
sess = sess.In("id",
builder.Select("uid").
From("team_user").
Where(builder.Eq{"team_id = ?": opts.TeamID}),
Where(builder.Eq{"team_id": opts.TeamID}),
)
}
if opts.PageSize > 0 && opts.Page > -1 {
Expand Down

0 comments on commit 36ddec9

Please sign in to comment.