diff --git a/models/common.js b/models/common.js index 4aa50a0..5bf70bc 100644 --- a/models/common.js +++ b/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,