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) { static async query(paginate, where, order) {
if (paginate && !paginate.pageCnt) return [];
let options = { let options = {
where: where, where: where,
order: order order: order

Loading…
Cancel
Save