diff options
Diffstat (limited to 'models/db/list_options.go')
-rw-r--r-- | models/db/list_options.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/models/db/list_options.go b/models/db/list_options.go index f31febfe25..843e73c8ae 100644 --- a/models/db/list_options.go +++ b/models/db/list_options.go @@ -24,7 +24,7 @@ func GetPaginatedSession(p Paginator) *xorm.Session { } // SetSessionPagination sets pagination for a database session -func SetSessionPagination(sess *xorm.Session, p Paginator) *xorm.Session { +func SetSessionPagination(sess Engine, p Paginator) *xorm.Session { skip, take := p.GetSkipTake() return sess.Limit(take, skip) |