Browse Source

Fix Model.query return no data when querying a interval

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

2
models/common.js

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

Loading…
Cancel
Save