Fix record paging

This commit is contained in:
Denis Arh
2019-01-22 13:38:57 +01:00
parent 9557b0ebb5
commit 5825197a81
+1 -1
View File
@@ -142,7 +142,7 @@ func (r *record) Find(module *types.Module, filter string, sort string, page int
query = query.
Column("r.*").
Limit(uint64(perPage)).
Offset(uint64(page))
Offset(uint64(page * perPage))
// Create actual fetch SQL sentences.
sqlSelect, argsSelect, err = query.ToSql()