Skip to content

Commit

Permalink
Fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
lunny committed Dec 4, 2024
1 parent 5760487 commit 28130c2
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions models/issues/pull_list.go
Original file line number Diff line number Diff line change
Expand Up @@ -287,9 +287,8 @@ func (prs PullRequestList) LoadReviews(ctx context.Context) (ReviewList, error)
}).And(builder.Neq{
"reviewer_team_id": 0,
}).
GroupBy("issue_id, reviewer_team_id").
OrderBy("review.updated_unix ASC")
if err := db.GetEngine(ctx).In("id", subQueryTeam).Find(&teamReviewRequests); err != nil {
GroupBy("issue_id, reviewer_team_id")
if err := db.GetEngine(ctx).In("id", subQueryTeam).OrderBy("review.updated_unix ASC").Find(&teamReviewRequests); err != nil {
return nil, err
}

Expand Down

0 comments on commit 28130c2

Please sign in to comment.