Browse Source

Made pagination start at p=0 instead of p=1

pull/52/head
Philip Ebels 6 years ago
parent
commit
9bbe090e33
  1. 2
      lib/xsql.js

2
lib/xsql.js

@ -217,7 +217,7 @@ class Xsql {
if ('_p' in reqParams && parseInt(reqParams._p) > 0) {
reqParams._index = (parseInt(reqParams._p) - 1) * reqParams._len;
reqParams._index = parseInt(reqParams._p) * reqParams._len;
}
//console.log(reqParams._index, reqParams._len);

Loading…
Cancel
Save