diff options
Diffstat (limited to 'models/git')
-rw-r--r-- | models/git/commit_status.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/models/git/commit_status.go b/models/git/commit_status.go index acb0110200..097ce01c14 100644 --- a/models/git/commit_status.go +++ b/models/git/commit_status.go @@ -323,7 +323,9 @@ func GetLatestCommitStatusForPairs(ctx context.Context, repoIDsToLatestCommitSHA Select("max( id ) as id, repo_id"). GroupBy("context_hash, repo_id").OrderBy("max( id ) desc") - sess = db.SetSessionPagination(sess, &listOptions) + if !listOptions.IsListAll() { + sess = db.SetSessionPagination(sess, &listOptions) + } err := sess.Find(&results) if err != nil { |