Browse Source

Fix paginate lead to SQL syntax error when no data to query

pull/6/head
Menci 8 years ago
parent
commit
3b34bc562e
  1. 2
      models/common.js

2
models/common.js

@ -88,6 +88,8 @@ class Model {
}
static async query(paginate, where, order) {
if (paginate && !paginate.pageCnt) return [];
let options = {
where: where,
order: order

Loading…
Cancel
Save