Browse Source

Merge pull request #16 from soaserele/patch-1

Fixing pagination issue when using _p & _size
pull/21/head
o1lab 7 years ago committed by GitHub
parent
commit
fe9133221e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      lib/xsql.js

2
lib/xsql.js

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

Loading…
Cancel
Save