ruifeng_liu 3 年之前
父节点
当前提交
ace8d9594b
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      app/service/patent/patentnotice.js

+ 1 - 1
app/service/patent/patentnotice.js

@@ -15,7 +15,7 @@ class PatentnoticeService extends CrudService {
     this.adminModel = this.ctx.model.Admin;
   }
 
-  async query(query, { skip = 0, limit = 0 } = 0) {
+  async query(query, { skip = 0, limit = 0 } = {}) {
     query = await this.resetQuery(query);
     console.log(query);
     const data = await this.model.find(query).skip(parseInt(skip)).limit(parseInt(limit))