aboutsummaryrefslogtreecommitdiffstats
path: root/models/ssh_key_deploy.go
diff options
context:
space:
mode:
Diffstat (limited to 'models/ssh_key_deploy.go')
-rw-r--r--models/ssh_key_deploy.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/models/ssh_key_deploy.go b/models/ssh_key_deploy.go
index e7d486b9f5..1631da7179 100644
--- a/models/ssh_key_deploy.go
+++ b/models/ssh_key_deploy.go
@@ -295,7 +295,7 @@ func listDeployKeys(e Engine, opts *ListDeployKeysOptions) ([]*DeployKey, error)
sess := e.Where(opts.toCond())
if opts.Page != 0 {
- sess = opts.setSessionPagination(sess)
+ sess = setSessionPagination(sess, opts)
keys := make([]*DeployKey, 0, opts.PageSize)
return keys, sess.Find(&keys)