Browse Source

Fix SQL LIMIT with a string

pull/6/head
Menci 7 years ago
parent
commit
a0b0f100ad
  1. 2
      models/common.js

2
models/common.js

@ -117,7 +117,7 @@ class Model {
options.limit = paginate[1] - paginate[0] + 1;
} else if (paginate) {
options.offset = (paginate.currPage - 1) * paginate.perPage;
options.limit = paginate.perPage;
options.limit = parseInt(paginate.perPage);
}
records = await this.model.findAll(options);

Loading…
Cancel
Save