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