summaryrefslogtreecommitdiffstats
path: root/models/pull_list.go
diff options
context:
space:
mode:
Diffstat (limited to 'models/pull_list.go')
-rw-r--r--models/pull_list.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/models/pull_list.go b/models/pull_list.go
index 2f685e19f5..8fa80307de 100644
--- a/models/pull_list.go
+++ b/models/pull_list.go
@@ -100,7 +100,7 @@ func PullRequests(baseRepoID int64, opts *PullRequestsOptions) ([]*PullRequest,
log.Error("listPullRequestStatement: %v", err)
return nil, maxResults, err
}
- findSession = opts.setSessionPagination(findSession)
+ findSession = setSessionPagination(findSession, opts)
prs := make([]*PullRequest, 0, opts.PageSize)
return prs, maxResults, findSession.Find(&prs)
}